Augeo AI Docs
Augeo Design SystemComponents

Switch

The binary on/off control for one setting that takes effect immediately. The caller owns the accessible name and the persistence.

Switch

Switch is the binary on/off control for one setting that takes effect immediately. It carries no label of its own, so the caller supplies the accessible name. Take the neutral tone when a view shows several switches beside a primary action, because a brand track competes with that action.

Interaction Phases

State space: none. This item renders no phase treatment of its own.

Politeness is not announced — this item carries no live region.

Storybook

Loading

Props

Prop

Type

Also takes the attributes of the element it renders.

Tokens

Derived from the component source at docs-generation time — these are the --augds-* variables it reads. Re-theme the colour slots by constructing a partner DesignSystemTheme and wrapping the consumer subtree in <ThemeProvider>, never by hard-coding values.

  • --augds-background-brand
  • --augds-background-disabled
  • --augds-background-neutral
  • --augds-color-monochrome-pure-white
  • --augds-foreground-brand
  • --augds-foreground-inverse
  • --augds-shadow-sm-element
  • --augds-surface-current

Source

  • src/components/ui/switch/switch.tsx