Skip to content

Switch

stable

Toggle switch for boolean settings

Data EntryInteractive/Storybook ↗
import { Switch } from "@nodus/design-system"
Loading demo…

Props

labelrequired
Type stringDefault

Accessible label text

switchSize
Type "sm" | "md" | "lg"Default "md"

Track and thumb dimensions

checked
Type booleanDefault

Controlled on/off state

disabled
Type booleanDefault

Disable interaction

Metadatasemantictypebordermotion
MobileTouch Target

Switch track is 44px wide but only 24px tall by default. Wrap in a min-h-[44px] container or use the toggle pattern with a full-row tap area.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?