Switch example: an on/off toggle with a pill track and sliding thumb, in default and small sizes. Shows focus rings and invalid styling, and inverts its thumb colors in dark mode.
npx shadcn@latest add @01orbital/switch
Loading the source for switch…
Files
—
switch
Configuration
Name
switch
Type
UI
Description
Switch example: an on/off toggle with a pill track and sliding thumb, in default and small sizes. Shows focus rings and invalid styling, and inverts its thumb colors in dark mode.
Files
—
switch
Configuration
Name
switch
Type
UI
Description
Switch example: an on/off toggle with a pill track and sliding thumb, in default and small sizes. Shows focus rings and invalid styling, and inverts its thumb colors in dark mode.