Skip to Content

Toggle Group

Toggle group example: a group of toggles that share variant and size. Set spacing to zero to join the items into one segmented control, laid out horizontally or vertically.

pnpm dlx shadcn add @01orbital/toggle-group

Examples

New

toggle-group-plant-filters

toggle-group-plant-filters

Plant Filters

Toggle group example: pill filters that narrow a plant list, under an arched card top. Shows a filter toggle group.

pnpm dlx shadcn add @01orbital/toggle-group-plant-filters

Toggle Group components

The library's own toggle group components, each installed on its own.

segmented-control

segmented-control

Segmented Control

Segmented control: a pill toggle group with a muted track where a lifted thumb glides to the pressed item, staying still under reduced motion. Horizontal only; values are arrays. Open its docs page

pnpm dlx shadcn add @01orbital/segmented-control

Dependencies

npm: @base-ui/react, class-variance-authority, cn. The CLI installs them for you.

Registry pieces it installs with it: