Invisible Docs
GalerieTokens

Schalter — ui.switch

An/Aus-Schalter (Toggle) — checkbox-Semantik mit Switch-Optik über Tokens. 1.2.0 (14.10.2026): value = gesendeter Wert (leer = on wie bisher); gleicher Feldname mehrfach auf der Seite bekommt ab dem zweiten Vorkommen eine eigene ID.

UI Elementv1.3.0Formulareweb.documentweb.applicationdesktop.shell

Beispiele

Aus

An

Rechnungen werden nach Versand automatisch erzeugt.

Deaktiviert (an)

Eigenschaften

PropTypDefault
label *string—
name *string—
valuestring""
checkedbooleanfalse
disabledbooleanfalse
hintstring""
namePlaceholderstring""
statePlaceholderstring""
groupPlaceholderstring""
groupRolestring: member | master"member"
paddingstring: standard | none | sm | md | lg | xl"standard"
marginstring: standard | none | sm | md | lg | xl"standard"
borderstring: standard | none | hairline | strong"standard"
radiusstring: standard | none | control | surface | pill"standard"
textColorstring""
backgroundColorstring""
shadowstring: standard | none | sm | md | lg"standard"
widthstring: standard | full"standard"
alignSelfstring: standard | start | center | end"standard"
anchorstring""

Events & Slots

Events: change

Stellschrauben (Komponenten-Tokens)

TokenDefault
--switch-track-offvar(--color-border-strong)
--switch-track-onvar(--color-action-primary)
--switch-thumbvar(--color-action-on-primary)

Genutzte Design-Tokens

color.action.on-primary color.action.primary color.action.primary-hover color.border.strong color.brand.on color.text.default color.text.disabled color.text.muted duration.base easing.standard elevation.control elevation.raised focus.ring-color focus.ring-offset focus.ring-width font.family.default gradient.brand gradient.brand-hover radius.full size.05 size.2 size.3 size.4 size.8 state.disabled-opacity text.md text.xs