vael-ui v0.3.10

Layout & Structure

Collapsible

A single show/hide section for content that is optional or secondary.

Install

import { Collapsible } from 'vael-ui'

Playground

import { Collapsible } from 'vael-ui'

<Collapsible :disabled="false" motionCss>Collapsible</Collapsible>

Props

NameTypeDefaultDescription
disabledboolean | undefinedfalse
motionCssboolean | undefinedtrue`false` skips transitions; use exposed `panelEl` for custom motion.
uiPartial<{ root: UiPartValue; trigger: UiPartValue; panel: UiPartValue; body: UiPartValue; }> | undefined
openboolean | undefinedfalse

Slots

NameTypeDescription
trigger{ open: boolean; }
defaultany

Events

NameTypeDescription
update:open[value: boolean]

Exposed

NameTypeDescription
elHTMLElement | null
panelElHTMLElement | null