Skip to content

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.

Composition

  • Disclosure

    Owns the expanded state.

    • DisclosureHeader
    • DisclosurePanel

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).