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>| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | "horizontal""vertical" | "horizontal" | |
| class | string | — | |
| ...props | <fieldset> attributes | — | Every other attribute goes to the <fieldset>, with a ref. |
ButtonGroupText
<div>| Prop | Type | Default | Description |
|---|---|---|---|
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>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| 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). |
| children | ReactNode | — | 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. |
Built with
Installs with Button Group
- Components
- Separator



