vael-ui v0.3.10

Actions

Dial

A circular drag control for picking a numeric value, like a volume knob.

Install

import { Dial } from 'vael-ui'

Playground

0
import { Dial } from 'vael-ui'

<Dial :min="0" :max="0" :step="1" :degreesPerStep="0" showValue size="md" :disabled="false" :invalid="false" name="">Dial</Dial>

Props

NameTypeDefaultDescription
minnumber | undefinedundefinedOmit either (or both) for a genuinely unbounded value that keeps counting forever in that direction.
maxnumber | undefinedundefined
stepnumber | undefined1
degreesPerStepnumber | undefinedundefinedDegrees of pointer rotation per `step` of value change.
showValueboolean | undefinedtrue
size"md" | "sm" | "lg""md"
disabledboolean | undefinedfalse
invalidboolean | undefinedfalse
namestring | undefinedFalls through to a hidden `<input>` → plain `<form>` participation.
valueText((value: number) => string) | undefinedDrives `aria-valuetext`, e.g. `(v) => \`${v} dB\`` for a gain dial.
uiPartial<{ root: UiPartValue; dial: UiPartValue; track: UiPartValue; fill: UiPartValue; ticks: UiPartValue; face: UiPartValue; }> | undefined
modelValuenumber | undefined0

Slots

No slots.

Events

NameTypeDescription
update:modelValue[value: number]

Exposed

NameTypeDescription
elHTMLElement | null
dialElHTMLElement | null
ticksElSVGGElement | null