Skip to content

Toggle Group

Groups multiple toggleable buttons together so users can select single or multiple options, ideal for text styling toolbars.

2.7 KB
•
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

Features

Variants

Toggle groups in default and outline styles.

Sizes

Toggle groups in sm, default, and lg sizes.

Vertical Orientation

Toggle group arranged vertically with orientation="vertical".

Multiple Selection

Toggle group configured for multiple selection via multiple.

Disabled State

Toggle group rendered in a disabled state.

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

Toggle group with disabled item
Toggle group with tooltips