Print Desk

The Atom design system, rendered live from its own tokens and components — it cannot drift from what ships.

Docs Components

Switchexperimental

On or off, right now. Flipping a switch takes effect immediately, no Save required. If the change needs saving first, it should be a checkbox.

formswitchtogglesettings

States

  • offSunken track, ink knob at left.
  • onInverse ink track, paper knob slides right.track: color-bg-inverseknob: color-text-inverse
  • disabled45% opacity, not-allowed cursor.

API

PropTypeDescription
checked requiredbooleanControlled state.
onCheckedChange requiredfunctionReceives the next boolean.
labelstringVisible row label; SHOULD state the current effect (Active / Inactive).

Accessibility

  • SpaceToggles the switch.
  • EnterToggles the switch (native button behavior).

Guidelines

  • mustSwitch changes take effect immediately — never pair a Switch with a Save button for the same value.
  • shouldIf the change is destructive or hard to reverse, use a Checkbox + explicit submit instead.