A single expandable section built on native <details>, which handles open/close (and exclusive groups, via the name attribute) on its own. Open state works uncontrolled (defaultOpen) or controlled (open + onOpenChange).
<details>
name
defaultOpen
open
onOpenChange
Readonly
Optional
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.
Legacy React Docs
Ignored by React.
Only kept in types for backwards compatibility. Will be removed in a future major release.
A single expandable section built on native
<details>, which handles open/close (and exclusive groups, via thenameattribute) on its own. Open state works uncontrolled (defaultOpen) or controlled (open+onOpenChange).