Disclosure
Shows or hides one section of content.
disclosure-demo.tsx
Installation
The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.
npm
yarn
pnpm
bun
Composition
DisclosureOwns the expanded state.
DisclosureHeaderDisclosurePanel
Expanded by default
Version 2.6 adds shared templates and faster exports.
disclosure-expanded-demo.tsx
Disabled
disclosure-disabled-demo.tsx
API reference
Disclosure takes the props of React Aria Disclosure (opens in a new tab).