9.5k

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.

ToggleGroupItem

Individual toggle button within the group. Styled wrapper for Toggle from Base UI. 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

Changelog

coss.com ui

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