Components · Forms
Toggle Group
shadcn's ToggleGroup: a segmented control for one choice, or a row of toggles for several.
Mode: decode
Installation
npx shadcn@latest add https://www.syntaqx.com/r/toggle-group.jsonExamples
Several at once
With type="multiple" each item toggles on its own and the value is the list that's on. A little spacing separates them, so they read as a set of switches rather than one control.
3 selected