Skip to content

Button Group

Free

Buttons, fields, and menu triggers that share their edges and read as one control, in a row or a column.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put the main action and its menu trigger in one group, with a ButtonGroupSeparator between them, for a split button.

The sample also uses Button and Menu. One command adds them with this item:

send-button.tsx

ButtonGroup

<fieldset>
PropTypeDefaultDescription
orientation"horizontal""vertical""horizontal"
classNamestring—
...props<fieldset> attributes—Every other attribute goes to the <fieldset>, with a ref.

ButtonGroupText

<div>
PropTypeDefaultDescription
From Base UIUseRenderBase UI docs
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ButtonGroupSeparator

<div>
PropTypeDefaultDescription
classNamestring—
variant"dashed""dotted""double""fade""solid"—The line pattern. Default: solid.
tone"default""destructive""info""muted""primary""success""warning"—The color, from the shared tokens. Default: default (the border color).
childrenReactNode—Content in the middle of a horizontal line: "or", a date, an icon. The line then splits in two halves around it, and a text label is the name that screen readers hear.
From Base UISeparatorBase UI docs
orientation"horizontal""vertical""vertical"The orientation of the separator.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it for 2 to 4 related controls.
  • Use ButtonGroupSeparator between filled children.

Built with

Installs with Button Group

Components
Separator
  1. AddedButton Group, with Separator.
Open the release