| collapsible | boolean | false |
- Name
- collapsible
- Description
When type is "single", allows closing content when clicking trigger for an open item. When type is "multiple", this prop has no effect. - Type
boolean- Default
- false
|
| disabled | boolean | false |
- Name
- disabled
- Description
When true, prevents the user from interacting with the accordion and all its items - Type
boolean- Default
- false
|
| dir | Direction | 'ltr' |
- Name
- dir
- Description
The reading direction of the accordion when applicable. If omitted, assumes LTR (left-to-right) reading mode. - Type
'ltr' | 'rtl'- Default
- 'ltr'
|
| orientation | DataOrientation | 'vertical' |
- Name
- orientation
- Description
The orientation of the accordion. - Type
'vertical' | 'horizontal'- Default
- 'vertical'
|
| unmountOnHide | boolean | true |
- Name
- unmountOnHide
- Description
When true, the element will be unmounted on closed state. - Type
boolean- Default
- true
|
| asChild | boolean | false |
- Name
- asChild
- Description
Change the default rendered element for the one passed as a child, merging their props and behavior. Read Reka UI's Composition guide for more details. - Type
boolean- Default
- false
|
| as | AsTag | Component | — |
- Name
- as
- Description
The element or component this component should render as. Can be overwritten by asChild. - Type
ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions> | (props: any, ctx: Omit<{ attrs: Attrs; slots: Readonly<InternalSlots>; emit: (event: string, ...args: any[]) => void; expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed | undefined) => void; }, 'expose'>): any | ComponentPublicInstanceConstructor<any, any, any, any, ComputedOptions, MethodOptions> | 'a' | 'button' | 'div' | 'form' | 'h2' | 'h3' | 'img' | 'input' | 'label' | 'li' | 'nav' | 'ol' | 'p' | 'span' | 'svg' | 'ul' | 'template' | {} & string- Default
- —
|
| type | SingleOrMultipleType | — |
- Name
- type
- Description
Determines whether a "single" or "multiple" items can be selected at a time. This prop will overwrite the inferred type from modelValue and defaultValue. - Type
'single' | 'multiple'- Default
- —
|
| modelValue | string | string[] | — |
- Name
- modelValue
- Description
The controlled value of the active item(s). Use this when you need to control the state of the items. Can be binded with v-model - Type
string | string[]- Default
- —
|
| defaultValue | string | string[] | — |
- Name
- defaultValue
- Description
The default active value of the item(s). Use when you do not need to control the state of the item(s). - Type
string | string[]- Default
- —
|
| class | ClassValue | — |
- Name
- class
- Description
Classes added to the part's own element, after its recipe classes. - Type
null | string | false | Record<string, any> | ClassValue[]- Default
- —
|