Svelte UI

Toggle Component

Basic

Variants

variant sets the switch's “on” colour.

Sizes

Aligns with inputs

The switch stays switch-sized, but its wrapper takes the control height for its size, so it lines up on the same baseline as a same-size Input.

Disabled