9.2k

Toggle Group

Provides a shared state to a series of toggle buttons.

Installation

Usage

API Reference

ToggleGroup

Root component. Styled wrapper for ToggleGroup.Root from Base UI. Provides shared variant and size to child toggles via context.

Toggle

Individual toggle button within the group. Styled wrapper for ToggleGroup.Item from Base UI. Inherits variant and size from parent ToggleGroup context. Also exported as ToggleGroupItem.

ToggleGroupSeparator

Visual separator between toggle buttons.

Examples

Small Toggles

Large Toggles

With Outline Toggles

Vertical

Disabled

With Disabled Toggle

Multiple selection

With Tooltips

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).