Aller au contenu principal
LyraDesign System

Toggle

Beta

L2 — Switch on/off, role="switch" sur '<'button'>' natif. "use client" (bascule d'état). Touch-target ≥44px, jamais couleur seule (position curseur + aria-checked).

import { Toggle } from "@lyra/tokens/components";

Playground

NotificationsFonctionnalité bêta

Démo interactive — réglages du playground (props ajustables en direct) à venir.

<Toggle label="Notifications" checked={on} onChange={setOn} />
<Toggle label="Mode sombre" checked={dark} onChange={setDark} showLabel={false} />
<Toggle label="Fonctionnalité bêta" checked={false} disabled onChange={() => {}} />

Documentation

  • activé
    Notifications
  • désactivé
    Notifications
  • disabled
    Bêta