LifeDS

Component

Switch

Toggle control for binary on/off states. Supports two sizes, disabled and invalid states.

Switchsize: default · sm
checkeddata-checked · data-unchecked
disableddata-disabled · opacity-50
aria-invalidborder-destructive · ring
Playground

Sizes

default
sm
default off
sm off

With label

States

checked
unchecked
disabled on
disabled off
invalid on
invalid off

Settings list

Receive alerts and reminders

Switch to a darker interface

Connect to wireless networks

Add an extra layer of security

Notification channels

Choose how you want to receive notifications.

Email

Daily digest

Push

Instant alerts

In-app

Inside the dashboard

With Field — description & orientation

Focus is shared across devices, and turns off when you leave the app.

Choice card — Field wrapped in FieldLabel

RTL support

يتم مشاركة التركيز عبر الأجهزة، ويتم إيقاف تشغيله عند مغادرة التطبيق.

Tokens used

7 semantic tokens consumed by this component.

--primaryPrimary
bg-primarytext-primaryborder-primaryring-primary
--primary-foregroundPrimary Foreground
text-primary-foregroundbg-primary-foreground
--inputInput
bg-inputborder-input
--backgroundBackground
bg-background
--foregroundForeground
text-foreground
--ringRing
ring-ringring
--destructiveDestructive
bg-destructivetext-destructiveborder-destructivering-destructive