Details about system requirements go here. Describes the minimum and recommended hardware and software needed.
Controls
<Disclosure>
<DisclosureTrigger>System requirements</DisclosureTrigger>
<DisclosurePanel>
Details about system requirements go here. Describes the minimum and recommended hardware and software needed.
</DisclosurePanel>
</Disclosure>Installation
npm
pnpm
yarn
bun
npx shadcn@latest add @dotui/disclosureAnatomy
import {
Disclosure,
DisclosurePanel,
DisclosureTrigger,
} from '@/components/ui/disclosure'DisclosureTrigger renders the heading, button, and chevron; DisclosurePanel holds the collapsible content.
<Disclosure>
<DisclosureTrigger>What is dotUI?</DisclosureTrigger>
<DisclosurePanel>dotUI is a design system platform.</DisclosurePanel>
</Disclosure>For full control over the trigger, compose the header from Heading and Button yourself.
import { Disclosure, DisclosurePanel } from '@/components/ui/disclosure'
import { Button } from '@/components/ui/button'
import { Heading } from '@/components/ui/heading'
import { ChevronDownIcon } from 'your-icon-library'<Disclosure>
<Heading>
<Button slot="trigger">
What is dotUI?
<ChevronDownIcon />
</Button>
</Heading>
<DisclosurePanel>dotUI is a design system platform.</DisclosurePanel>
</Disclosure>Open state
Use defaultExpanded for uncontrolled state, or isExpanded with onExpandedChange to control it.
const [isExpanded, setExpanded] = React.useState(false)
<Disclosure isExpanded={isExpanded} onExpandedChange={setExpanded}>
<DisclosureTrigger>System requirements</DisclosureTrigger>
<DisclosurePanel>...</DisclosurePanel>
</Disclosure>Examples
Basic Disclosure
Details about system requirements go here. Describes the minimum and recommended hardware and software needed.
Advanced Composition
Details about system requirements go here. Describes the minimum and recommended hardware and software needed.
FAQ Section
Frequently asked questions
Go to Settings, then Security, and select "Reset password". We will email you a secure link that stays valid for 30 minutes.
Yes. You can upgrade or downgrade at any time from the Billing page. Changes are prorated and take effect immediately.
We offer a full refund within 14 days of purchase, no questions asked. Reach out to support and we will process it right away.
Feature Details
Edge Functions
Run code closer to your users with zero cold starts.
- 1M invocations per month
- Deploy to 30+ regions worldwide
- Automatic failover and scaling
- Logs and metrics retained for 7 days
API Reference
Disclosure
A disclosure is a collapsible section of content. It is composed of a header with a heading and trigger button, and a panel that contains the content.
| Prop | Type | Default | |
|---|---|---|---|
ReactNode | function | — | ||
boolean | — | ||
Key | — | ||
boolean | — | ||
boolean | — | ||
DisclosureTrigger
A DisclosureTrigger provides the trigger for a disclosure.
| Prop | Type | Default | |
|---|---|---|---|
ReactNode | function | — | ||
boolean | — | ||
boolean | — | ||
DisclosurePanel
A DisclosurePanel provides the content for a disclosure.
| Prop | Type | Default | |
|---|---|---|---|
ReactNode | — | ||
ElementType | 'label' | ||
Last updated on 7/9/2026