Layout
Accordion
Vertically stacked expandable sections.
Sourceaccordion.tsx
Primitive
@radix-ui/react-accordion
Accordion
Expandable sections.
QuickBooks, SPS Commerce, Shopify, and 60+ more.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
type | "single" | "multiple" | -- | Single or multiple items open. |
collapsible | boolean | false | Allow all items to be closed (single mode only). |
value | string | string[] | -- | Controlled open items. |
defaultValue | string | string[] | -- | Default open items. |
Usage
import { Accordion } from "@doss/tetris-ui";