Component referenceVersion Draft
Switch
A switch represents a persistent binary setting. Keep its label stable while the checked state changes.
Design notes
Icons may distinguish modes, but a visible or accessible label still describes the setting. Selection feedback uses color rather than press scaling.
Switch design
Inspect the original component, variants and visual details.
Playground
Playgrounddemo.tsx
Notifications
Disabled states
Sizes with icons
small
medium
large
API
Switch
A labelled native checkbox with switch semantics. State icons are decorative. className styles the label, ref points to the input.
No custom imperative methods. Event callbacks are listed as properties.