<Disclosure>
<DisclosureTrigger>System requirements</DisclosureTrigger>
<DisclosurePanel>
Details about system requirements go here. Describes the minimum and recommended hardware and software needed.
</DisclosurePanel>
</Disclosure>npx shadcn@latest add @dotui/disclosureimport {
Disclosure,
DisclosureHeading,
DisclosurePanel,
} from '@/components/ui/disclosure'<Disclosure>
<DisclosureHeading>What is dotUI?</DisclosureHeading>
<DisclosurePanel>dotUI is a design system platform.</DisclosurePanel>
</Disclosure>for more advanced composition, you can use this structure
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>
What is dotUI?
<ChevronDownIcon />
</Button>
</Heading>
<DisclosurePanel>dotUI is a design system platform.</DisclosurePanel>
</Disclosure>Expanded: false
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 | — | ||
DOMRenderFunction<"div", DisclosureRenderProps> | — | ||
A DisclosureTrigger provides the trigger for a disclosure.
| Prop | Type | Default | |
|---|---|---|---|
ReactNode | function | — | ||
boolean | — | ||
boolean | — | ||
DOMRenderFunction<"button", ButtonRenderProps> | — | ||
A DisclosurePanel provides the content for a disclosure.
| Prop | Type | Default | |
|---|---|---|---|
ReactNode | — | ||
ElementType | 'label' | ||
DOMRenderFunction<"div", DisclosurePanelRenderProps> | — | ||
Last updated on 6/11/2026