Documentation Index
Fetch the complete documentation index at: https://mintlify.com/zendeskgarden/website/llms.txt
Use this file to discover all available pages before exploring further.
Installation
When to use
Use a Split button:- To let users select from multiple parallel actions, where each action is a path forward and none cancel the current workflow
- To reduce visual complexity when multiple related actions are available
- To provide a way to navigate between pages — use Anchor instead
- To provide primary and secondary actions that are distinctly different in importance — use two separate Buttons instead
Usage
Default
A Split button combines a primary actionButton with a ChevronButton that reveals a Menu of secondary parallel actions.
Danger
Use danger styling when the actions involve destructive or irreversible changes.Disabled
Disable both theButton and the ChevronButton to prevent all interaction.
Sizes
Split buttons support small, medium, and large sizes. Apply the samesize prop to both the Button and the ChevronButton.
Types
Split buttons can be default or primary. Apply the same type to both child components.API
TheSplitButton component follows this structure:
- SplitButton — container that groups and styles the button pair
- Button — the primary action trigger
- ChevronButton — the secondary trigger that opens/closes the menu
- Dropdown, Trigger, Menu, and Item — from
@zendeskgarden/react-dropdowns, they manage the secondary actions list
SplitButton props
SplitButton is a layout container. It accepts standard HTML div props and no additional Garden-specific props.
ChevronButton props
Accessible label for the chevron trigger. Required for screen reader support.
Applies filled primary styling. Should match the adjacent
Button.Applies danger styling. Should match the adjacent
Button.Controls button size. Should match the adjacent
Button.Prevents interaction with the chevron trigger.