LifeDS

Component

Alert

Inline status message with optional icon, title, description and action slot.

Alertvariant: default · destructive
AlertTitlebold heading, col-2 when icon present
AlertDescriptionmuted supporting text
AlertActionslot pinned to top-right
Playground

Variants

default — informational
destructive — error or warning

Title only — no description

Without icon

With action

dismiss button
destructive with retry action

Long content — wraps and balances

Tokens used

6 semantic tokens consumed by this component.

--cardCard
bg-card
--card-foregroundCard Foreground
text-card-foreground
--destructiveDestructive
bg-destructivetext-destructiveborder-destructivering-destructive
--destructive-foregroundDestructive Foreground
text-destructive-foreground
--muted-foregroundMuted Foreground
text-muted-foreground
--borderBorder
border-borderborder