Skip to content

Commit

Permalink
Adding info to Style Guide about default behaviour of Details component.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oxyjun committed Oct 21, 2024
1 parent 038cbd5 commit 73ae1d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/content/docs/style-guide/components/details.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,14 @@ import { Details } from "~/components"
<Details header="Open me!">
Hello, world!
</Details>
```
```

You can specify the default configuration of each instance of the `<Details>` component (that is, whether it is open or closed by default).

```mdx live
import { Details } from "~/components"

<Details header="Close me!" open = {true}>
Long piece of code example.
</Details>
```

0 comments on commit 73ae1d9

Please sign in to comment.