Checkbox, Radio & Toggle
Selection controls in two sizes.
import { Checkbox, Radio, Toggle } from '@stanvision/atomus-react';
<Checkbox label="Email me updates" defaultChecked /><Radio name="plan" label="Pro" description="Unlimited projects" /><Toggle label="Dark mode" size="md" />Checkbox
Section titled “Checkbox”Pick any number of options, or confirm one setting that applies on submit.
Provide
Section titled “Provide”label,description(Figma: Label, Description),sizesm(16 box) ·md(20 box).checked/defaultChecked,onChange;indeterminatefor a partial “select all”.
- Don’t use a checkbox for a setting that applies instantly — use Toggle.
Pick exactly one of 2–5 options. Wrap the group in role="radiogroup" with a label.
Provide
Section titled “Provide”- The same
nameon each radio, alabel, optionaldescription,sizesm·md.
- Don’t use radios for more than five options — use a Select.
Toggle
Section titled “Toggle”A switch for a setting that takes effect immediately.
Provide
Section titled “Provide”label,description,checked/onChange.sizesm(36×20) ·md(44×24);shapepill·square(Figma: Shape).
- Don’t use inside a form that needs a Save button — use Checkbox.
In Figma
Section titled “In Figma”Properties, variants and anatomy for the Figma component are on the Figma reference page. Prop names in React match the Figma property names.