vael-ui v0.3.10

Layout & Structure

Accordion

A stack of collapsible sections where opening one can close the others.

Install

import { Accordion } from 'vael-ui'

Playground

import { Accordion } from 'vael-ui'

<Accordion :multiple="false" collapsible motionCss>Accordion</Accordion>

Props

NameTypeDefaultDescription
multipleboolean | undefinedfalse
collapsibleboolean | undefinedtrueWhether the last open item can close, leaving none open.
motionCssboolean | undefinedtrue`false` skips transitions; use exposed `panelEl`/`open` for custom motion.
uiPartial<{ root: UiPartValue; }> | undefined
valuestring | string[] | null | undefinednull

Slots

NameTypeDescription
default{}

Events

NameTypeDescription
change[value: string | string[] | null]
update:value[value: string | string[] | null]

Exposed

NameTypeDescription
elHTMLElement | null