← ui-lab

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.

Preview

Installation

npx shadcn@latest add https://ui.publictheta.com/r/toggle-group.json

Conformance

This component conforms to the @publictheta/ui-spec toggle-group specification. Run the suite against any implementation with pnpm conformance.