Get Started
Components
- Alert
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Checkbox Group
- ComboBox
- Command
- Data Table
- Date Field
- Date Picker
- Date Range Picker
- Dialog
- Disclosure
- Disclosure Group
- Drawer
- Empty
- Field
- File Trigger
- Form
- Grid List
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- ListBox
- Menu
- Number Field
- Pagination
- Popover
- Progress Bar
- Radio Group
- Range Calendar
- Resizable
- Search Field
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Tag Group
- Text Field
- Textarea
- Time Field
- Toast
- Toggle Button
- Toggle Button Group
- Tooltip
- Tree
- Typography
AI Elements
A disclosure is a collapsible section of content. It is composed of a a header with a heading and trigger button, and a panel that contains the content.
Details about system requirements here.
import { Disclosure, DisclosureHeader, DisclosurePanel } from "../ui/disclosure"
export function DisclosureDemo() {
return (
<Disclosure className="min-w-66">
<DisclosureHeader>System Requirements</DisclosureHeader>
<DisclosurePanel>Details about system requirements here.</DisclosurePanel>
</Disclosure>
)
}
Installation
CLI
Manual
pnpmnpmyarnbunpnpm dlx shadcn@latest add disclosure
Usage
import {
Disclosure,
DisclosureHeader,
DisclosurePanel,
} from "@/components/ui/disclosure"<Disclosure>
<DisclosureHeader>Open</DisclosureHeader>
<DisclosurePanel>Place content for the disclosure here.</DisclosurePanel>
</Disclosure>