Props
| Name | Description |
|---|---|
eager Type: booleanDefaultfalse | Renders the content at mount, while closed, instead of on the first open. Closed content is Renders the slot before the first open. Needed when the content must exist up front: a form field that registers and validates, text a prerendered page has to carry, anything measured on mount. It does not weaken the hidden state: closed content stays |
modelValue Type: booleanDefaultfalse | Used by v-model to open or close the collapsible. Optional: omitted, it renders closed. One-way. The component renders this value and never writes it back: there is no event and no model row on this page, because it cannot open or close itself. |
pt Type: PtMap<BbCollapsiblePtPart, "open"> | Passthrough, object form: the same keys as the |
pt:<part> Type: PtValue | Passthrough, attribute form: one attribute per part, |
tag Type: LayoutTagDefault"div" | Element rendered as the root, and mirrored by the inner animating element — so the pair is div-in-div or span-in-span, both valid. The default |
transitionDuration Type: numberDefault250 | How long the transition has to last in milliseconds Milliseconds; the manifest default resolves to 250. One value drives both the height animation and the opacity fade. Under |
Slots
The listed properties are the ones exposed to the slot scope.
| Name | Description |
|---|---|
default Type: any | The collapsible body content that is shown or hidden based on Deferred until the first open, then mounted for good, so state inside survives close and reopen. Put padding and borders on what you slot in here, not on the collapsible: padding on the root stays when it closes, and the inner |