Toggle Group

Provides a shared state to a series of toggle buttons.

Usage

API Reference

ToggleGroup

Root component. Provides shared variant and size to child toggles via context.

ToggleGroupItem

Individual toggle button within the group. Inherits variant and size from parent ToggleGroup context.

ToggleGroupSeparator

Visual separator between toggle buttons.

Examples

Small Toggles

Large Toggles

With Outline Toggles

Vertical

Disabled

With Disabled Toggle

Multiple selection

With Tooltips