All components

Toggle Group

A set of toggle buttons with single or multiple selection and arrow-key navigation.

Variants

ghost
outline

Sizes

xs
sm
md
lg

Multiple selection

Set multiple to let several items stay pressed at once — a text-formatting group. Items then expose aria-pressed instead of acting as radios.

Outline with labels

The outline variant borders every item; text labels work as well as icons. A palette tints the pressed item.

Vertical

orientation="vertical" stacks the items and switches arrow-key navigation to Up and Down.

Disabled

Disable the whole group on Root, or a single option on its Item.

Install

Source

components/ui/ark-ui/toggle-group.tsx