vael-ui v0.3.10

Actions

SelectButton

A segmented control for choosing one (or several) values from a short list.

Install

import { SelectButton } from 'vael-ui'

Playground

import { SelectButton } from 'vael-ui'

<SelectButton :multiple="false" allowEmpty :disabled="false" size="md" name="" :items="items">SelectButton</SelectButton>

Props

NameTypeDefaultDescription
itemsreadonly T[]
multipleboolean | undefinedfalse
allowEmptyboolean | undefinedtrueSingle mode only: clicking the active option clears the model.
disabledboolean | undefinedfalse
size"md" | "sm" | "lg""md"
namestring | undefined
uiPartial<{ root: UiPartValue; option: UiPartValue; indicator: UiPartValue; }> | undefined
modelValuestring | number | (string | number)[] | null | undefinednull

Slots

NameTypeDescription
item{ item: T; checked: boolean; }

Events

NameTypeDescription
change[value: string | number | (string | number)[] | null]
update:modelValue[value: string | number | (string | number)[] | null]

Exposed

NameTypeDescription
elunknownType inference unavailable — vue-component-meta cannot resolve defineExpose on this generic component.
indicatorElunknownType inference unavailable — vue-component-meta cannot resolve defineExpose on this generic component.