Skip to content
syntaqx

Components · Forms

Toggle Group

shadcn's ToggleGroup: a segmented control for one choice, or a row of toggles for several, joined or spaced, horizontal or vertical.

Mode: decode

Installation

npx shadcn@latest add https://www.syntaqx.com/r/toggle-group.json

Examples

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