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 Button:- To enable user action
- To draw attention to relevant actions in a user’s workflow
- To navigate to another page — use Anchor instead
- To help users choose from parallel actions — use Split button instead
Usage
Default
The typical usage of a Button component. Three visual types are available: default (outlined), primary (filled), and basic (text-only).Danger
Use danger styling for buttons that enable a destructive or irreversible action.Disabled
A disabled Button prevents user interaction. It does not appear in the tab order, cannot receive focus, and may not be read aloud by a screen reader.Media (icons)
NestButton.StartIcon or Button.EndIcon inside a Button to add an icon before or after the label text.
Sizes
Buttons come in small, medium, and large. The default size is medium.Stretched
A stretched Button fills the full width of its container.API
The Button component follows this structure:Button props
Applies filled primary styling.
Applies text-only basic styling (no border or background).
Applies danger (destructive action) styling.
Applies neutral styling, reducing visual emphasis.
Stretches the button to fill its container’s full width.
Controls the button’s size.
Prevents user interaction and applies disabled styling.
Button.StartIcon props
Rotates the icon 180 degrees. Useful for expand/collapse patterns.
Button.EndIcon props
Rotates the icon 180 degrees. Useful for expand/collapse patterns.