Disclosure
Disclosure owns one independent expandable region with a labelled trigger.
Design notes
Its solid triangle points right when collapsed and down when expanded. Use Accordion when multiple regions share selection rules.
Playground
Your input is retained when this section is collapsed.
API
Disclosure
Radix collapsible root with controlled or uncontrolled open state. Native div attributes are forwarded.
No custom imperative methods. Event callbacks are listed as properties.
DisclosureTrigger
A native button in a semantic heading. The component owns its trigger ID and solid triangle; asChild is not supported.
No custom imperative methods. Event callbacks are listed as properties.
DisclosureContent
A labelled collapsible region. Native attributes and ref apply to the outer panel, which contains a spacing wrapper.
No custom imperative methods. Event callbacks are listed as properties.