LifeDS

Component

Toggle

A two-state button that can be either on or off.

variantdefault · outline
sizesm · default · lg · xl
disabledboolean
Playground

Basic

size="sm" variant="outline"

Outline

italic and bold

With text

icon + label

Sizes

size="sm" · "default" · "lg" · "xl"

Disabled

default and outline

Pressed state

defaultPressed — initial on state

RTL support

Arabic

Tokens used

5 semantic tokens consumed by this component.

--mutedMuted
bg-mutedtext-mutedborder-muted
--foregroundForeground
text-foreground
--inputInput
bg-inputborder-input
--ringRing
ring-ringring
--destructiveDestructive
bg-destructivetext-destructiveborder-destructivering-destructive