Search components

Find a component by name

Toggle Group

Set of toggles, single or multiple selection: spaced by default (spacing={0} joins them into a segmented control), horizontal or vertical (orientation).

Outline

Use variant="outline" for an outline style.

Size

Use the size prop to change the size of the toggle group.

Spacing

Use spacing to set the space between items. The default is 2; spacing={0} joins the items into one segmented control, with shared borders and only the outer corners rounded.

Vertical

Use orientation="vertical" to stack the items. Arrow keys move up and down, and with spacing={0} the top and bottom corners round instead.

Disabled

Use the disabled prop on ToggleGroup to disable every item.

Custom

A font weight picker: a single-select ToggleGroup with spaced, card-like items inside a Field.

Use font-normal to set the font weight.

Installation

npx shadcn@latest add @refer/toggle-group

Usage in the apps

Which apps install this component, whether their copy matches the registry, and which files import it.

PortalIn sync1 file
ArgusDivergedNot imported
LandingDivergedNot imported
PartnersDivergedNot imported

Imported by 1 file across the apps. From olympus-backend@2ee40d05e, Oct 26, 2026. โ€œIn syncโ€ means the app's copy matches this registry; refresh with npm run usage:build.