Search documentation

Find a component or a docs page

Toggle Group

A set of two-state buttons that can be toggled on or off, with single or multiple selection. Arrow keys move between items (loop_focus: false stops at the ends); pressing the pressed item of a single group clears it. Mirrors shadcn/ui ToggleGroup.

Usage

Default

Outline

Multiple

Single

Size

Spacing

Vertical

Disabled

Custom

Components

ComponentBuilt usingSource
ToggleGroupPhlex
ToggleGroupItemPhlex
ToggleGroupControllerStimulus JS