🚧 This documentation is a Work In Progress!
Skip to content

Details

The <Details /> component provides a styled disclosure widget (accordion) for hiding and showing content. It's a great way to include extra information without cluttering the main page.

Usage

jsx
<Details title="Click to reveal more info">
  This is the hidden content that appears when you click the header. You can
  include **Markdown** or even other components inside here.
</Details>

Props

PropTypeDescription
titlestringThe text displayed in the header button.
openbooleanIf true, the accordion will be open by default.