Invisible Docs
GalerieTokens

Schalter — ui.switch

An/Aus-Schalter (Toggle) — checkbox-Semantik mit Switch-Optik über Tokens

UI Elementv1.0.0Formulareweb.documentweb.applicationdesktop.shell

Beispiele

Aus

An

Rechnungen werden nach Versand automatisch erzeugt.

Deaktiviert (an)

Eigenschaften

PropTypDefault
label *string—
name *string—
checkedbooleanfalse
disabledbooleanfalse
hintstring""

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.border.strong color.text.default color.text.disabled color.text.muted duration.base easing.standard focus.ring-color focus.ring-offset focus.ring-width font.family.default radius.full shadow.control size.05 size.2 size.3 size.4 size.8 state.disabled-opacity text.md text.xs