--- title: Collapsible description: An expandable content region using the shadcn Collapsible primitive. component: true --- Collapsible is a low-level primitive for revealing and hiding related content. Use it when a component needs custom trigger or content composition. Use Collapsible for generic disclosure behavior: rows, sections, menus, tool details, and custom layouts. Use [DialogDisclosure](./dialog#optional-details) for optional details in a dialog. ## Usage ```tsx import { Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui' ``` ```tsx Toggle

Content revealed when expanded.

``` ### Default open ```tsx Details

This section is expanded by default.

``` ### Animation Add animation classes to `CollapsibleContent` when animated open and close transitions are needed. ```tsx

Content revealed when expanded.

```