Accordion
A vertically stacked set of interactive headings that each reveal an associated section of content.
Sizes
The default size is medium
API Reference
Root
React.ComponentPropsWithRef<div>Prop | Type | Default |
---|---|---|
type | single | multiple | _ |
value | string | string[] | _ |
defaultValue | string | string[] | _ |
onValueChange | (value: string) => void | (value: string[]) => void | _ |
collapsible | boolean | false |
disabled | boolean | false |
Item
React.ComponentPropsWithRef<div>Prop | Type | Default |
---|---|---|
value | string | _ |
disabled | boolean | false |