A standalone expandable region for showing and hiding supporting content.
Disclosure defines how EnterUI handles a standalone expandable region for showing and hiding supporting content, including default structure, accessible states, and token-driven styling.
Disclosure is a single standalone reveal pattern, separate from multi-item Accordion.
EnterUI ships components, CSS classes, and theme-aware variables from one public entry point.
<Disclosure defaultOpen>
<DisclosureTrigger>Package details</DisclosureTrigger>
<DisclosureContent>
EnterUI ships components, CSS classes, and theme-aware variables from one public entry point.
</DisclosureContent>
</Disclosure>import {
Disclosure,
DisclosureContent,
DisclosureTrigger,
} from "@froggdesign/enter-ui-react";The trigger is a native button with aria-expanded and aria-controls. Closed content is hidden with the native hidden attribute.
defaultOpen sets uncontrolled initial state.open and onOpenChange support controlled usage.className.Uses .eui-disclosure classes with calm surfaces and a simple disclosure chevron.