Description
- A button triggers an action. For example, submit a form, advance to the next step in a process, or create a new item.
- Group related buttons together. See Button layout for further guidance.
Component preview
Anatomy
Anatomy
Size
- Button heights are fixed and available in: S size, M size, and L size.
- Choose the most suitable height based on context, space, and screen size.
- XS size button exists, but is only used within the S Table component. Do not use it as a standalone button.
- Button widths should fit to content or extend to the full width of a container.
- For button placement guidance, see the Form pattern.
States
Variations
Function
These variants perform specific types of action.
Typical
Destructive
Ai
Emphasis
These variants can be Typical or Destructive. They help to guide user focus in button groups and overall page layout.
Primary
Secondary
Tertiary
Subtle
Icon
- Add an icon to draw attention to the button and explain the action.
- Use icons with caution and only if they improve clarity and do not introduce any problems with accessibility, space constraints, or consistency.
- See information on icon placement in the Button overview page
Left icon (default)
Right icon
No icon
Icon only
Color mode
Light
Dark
Dos and don'ts
Do
Do
Don't
Don't
Don't