Details
component together with Summary
and DetailsContent
can be used as a basis for accordions and collapsible panels.
Details
is a controlled component meaning its open state needs to be provided via open
prop in contrast to browser native details element.
Property | Type | Required | Default | Description |
---|---|---|---|---|
open | boolean | - | false | if true details contents are visible |
Details
, Summary
and DetailsContent
components accept all of the responsive, theme-based style props.