Skip to content

Toggle Group

A set of two-state buttons that share one selection state, allowing either a single pressed item or several at once.

Toggle Group

Installation

pnpm dlx shadcn@latest add @sortui/toggle-group

Usage

import {
  ToggleGroup,
  ToggleGroupItem,
} from "@/components/ui/toggle-group"

Examples

Variants

Sizes

Spacing

Disabled

Orientation

Custom

Ship your next project this week

Get the full Figma kit, the code of 180+ sections and every future update for one payment.

Get Pro Access