Skip to content

Group

Combines adjacent interactive elements into a seamless visual segment for a cleaner, unified toolbar layout.

4.6 KB
•
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

Features

Disabled State

Group container with disabled child items.

Accessibility

  • The Group component has the role attribute set to group.
  • Use Tab to navigate between the controls in the group.
  • Use aria-label or aria-labelledby to label the group.
Code

Group vs ToggleGroup

  • Use the Group component when you want to group controls that perform an action.
  • Use the ToggleGroup component when you want to group controls that toggle a state.

API Reference

Group

The Group component is a container that visually groups a series of related controls together with consistent styling.

Code

Nest multiple groups to create complex layouts with spacing. See the nested groups example for more details.

Code

GroupSeparator

The GroupSeparator component visually divides controls within a group.

Code

Note: Unlike shadcn's ButtonGroup, GroupSeparator is required between all controls, including outline buttons. This ensures consistent visual hierarchy and focus states.

GroupText

Use this component to display text within a group, such as labels or prefixes.

Code

Use the render prop to render a custom component as the text, for example a label.

Code

Aliases

Group, GroupText, and GroupSeparator are also exported as ButtonGroup, ButtonGroupText, and ButtonGroupSeparator for compatibility.

Examples

Group with input
Small group
Large group
Group with default button
Group with start text
Group with end text
Vertical group
Nested groups
Group with popup
Group with input group
Group with menu
Group with select
Group with add button and input
Group with input and currency text
Group with select and input
Group with input and select
Group with input and text button
Group with two number inputs for range
Group with filter label, combobox multi-select, and remove button
Group with model selection and tooltips
Group with status select and search input
Group for 1-10 rating scale
Group toolbar example 1
Group toolbar example 2
Group with team collaboration actions and avatars
Group with document actions