Skip to main content

Function: Disclosure()

Disclosure(__namedParameters): Element

Defined in: composites/Disclosure/Disclosure.tsx:116

A single collapsible section built on React Aria's Disclosure.

The standalone counterpart of Accordion (a DisclosureGroup): use Disclosure when there is exactly one expandable region with no sibling coordination (a "show more" block, an optional settings section). Entity = Disclosure → reads vars.colors.navigation.{primary|muted} and animates with vars.motion.transition.{enter,exit}.

Parameters

ParameterType
__namedParametersDisclosureProps

Returns

Element

Example

<Disclosure>
<DisclosureTrigger>Advanced options</DisclosureTrigger>
<DisclosurePanel>Rarely-needed settings live here.</DisclosurePanel>
</Disclosure>