Skip to content

Collapsible ​

Overview ​

Root collapsible component built on Reka UI's CollapsibleRoot.

Theme entry: Collapsible

Props ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes to apply to the root element.
modelValuebooleanundefinedThe controlled open state.
defaultOpenbooleanundefinedThe default open state.
unmountOnHidebooleantrueWhether to unmount the content when closed. Set false to preserve form fields and their validation.
disabledbooleanundefinedWhether the collapsible is disabled.
dirstringundefinedThe reading direction.
asstring|objectundefinedThe element or component to render as.
asChildbooleanfalseWhen true, merges props onto the child element instead of rendering a wrapper.

Slots ​

default ​

Scoped slot.

Events ​

NameDescription
update:modelValueEmitted when the value changes.

Full event reference

Source ​

client/lib/shell/collapsible/Collapsible.vue