Toggle Group
A group of independent toggle buttons — like a formatting toolbar. Each button reports its on/off state with `aria-pressed`, and activating one flips only its own state (multi-select), unlike a radio group. Press a couple and the rest stay as they were.
- Axe
- Focus
Preview
Installation
npx shadcn@latest add https://ui.publictheta.com/r/toggle-group.jsonConformance
Verified against the @publictheta/ui-spec toggle-group specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.
- Axe — No WCAG 2 A/AA axe-core violations
- Focus — A visible focus indicator appears on keyboard focus (WCAG 2.4.7)
See the full conformance matrix across all components.