Skip to content

Commit 71ace8c

Browse files
authored
Adding info to Style Guide about default behaviour of Details component. (#17674)
1 parent 4fbac68 commit 71ace8c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/content/docs/style-guide/components/details.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,14 @@ import { Details } from "~/components"
1010
<Details header="Open me!">
1111
Hello, world!
1212
</Details>
13-
```
13+
```
14+
15+
You can specify the default configuration of each instance of the `<Details>` component (that is, whether it is open or closed by default).
16+
17+
```mdx live
18+
import { Details } from "~/components"
19+
20+
<Details header="Close me!" open = {true}>
21+
Long piece of code example.
22+
</Details>
23+
```

0 commit comments

Comments
 (0)