LifeDS

Components

Component

Toggle Group

A set of two-state buttons that can be toggled on or off, grouped together.

ToggleGroupmultiple: boolean (default false) — value/defaultValue: string[] — variant · size · orientation · spacing
ToggleGroupItemvalue — inherits variant/size from the group
Playground

Basic — formatting toolbar

Outline variant — single select

Sizes

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

Spacing

spacing={0} — joined segments (default) vs spacing={2} — separated

Vertical orientation

Disabled

Custom — font weight selector with state

Selected weight: normal

RTL support

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