ComponentsAccordion
Accordion
A collapsible component that displays content in a vertical stack.
A collapsible component that displays content in a vertical stack.
Prop | Type | Default |
---|---|---|
asChild | boolean | |
collapsible | boolean | false |
defaultValue | string[] | |
dir | 'ltr' | 'rtl' | "ltr" |
disabled | boolean | |
getRootNode | () => ShadowRoot | Node | Document | |
id | string | |
ids | Partial<{
root: string
item(value: string): string
content(value: string): string
trigger(value: string): string
}> | |
multiple | boolean | false |
onFocusChange | (details: FocusChangeDetails) => void | |
onValueChange | (details: ValueChangeDetails) => void | |
orientation | 'horizontal' | 'vertical' | |
value | string[] |
Prop | Type | Default |
---|---|---|
value | string | |
asChild | boolean | |
disabled | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean | |
lazyMount | boolean | false |
onExitComplete | () => void | |
present | boolean | |
unmountOnExit | boolean | false |
Prop | Type | Default |
---|---|---|
asChild | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |