When to use
Section titled “When to use”Use Button for actions that change something on the current page: saving, sending, confirming, downloading a file.
When not to use
Section titled “When not to use”- To go to another page: Use a link. If it has to look like a Button, render an
<a>withrender(see the Code tab). - To turn a setting on or off: Use a Switch.
- To offer many options: Use a DropdownMenu. Do not line up more than four Buttons side by side.
Anatomy
Section titled “Anatomy”- Containerbackground, border and corner radius; its height follows the chosen size.
- Labela short text that names the action with a verb and an object.
- Focus ringdrawn 2 px outside the Button, only for keyboard focus.
Behaviour
Section titled “Behaviour”- A click, Enter or Space starts the action.
- On hover and while pressed, the background steps one shade darker; the colour change takes 110 ms.
- The focus ring is drawn only when the Button is reached with the keyboard, not on a mouse click.
- A disabled Button ignores all events, and the cursor shows it.
- A loading Button ignores clicks and keys but keeps focus; it works again once the action ends. When
disabledis also set, loading wins: the Button stays focusable and hasaria-disabled. Once loading ends, the disabled look and rules apply. - Keyboard and screen reader details are on the Accessibility tab.
Guidelines
Section titled “Guidelines”These seven rules keep Button meaning the same thing across the product.
One primary action per area
Section titled “One primary action per area”A primary Button tells people “continue here”. With two primary Buttons side by side, nobody can tell which path is the main one.
Say what will happen
Section titled “Say what will happen”The label alone should say what happens on click. Labels such as “OK” or “Yes” make people read the surrounding text to find out.
Use the danger tone for actions that cannot be undone
Section titled “Use the danger tone for actions that cannot be undone”Deleting, cancelling and other actions that cannot be reversed use the danger tone and ask for confirmation.
If you disable it, say why
Section titled “If you disable it, say why”A Button that is disabled without explanation leaves people guessing what to do.
Keep loading for long actions
Section titled “Keep loading for long actions”The spinner tells people that a request taking longer than about a second has been received, and it blocks a second click. On an action that finishes at once it only flickers.
Do not spin on validation errors
Section titled “Do not spin on validation errors”Locking the Button and spinning while the form is invalid says something is in progress, when what people need to do is fix the error. Keep the Button enabled and write the error under the field.
An icon never replaces the label
Section titled “An icon never replaces the label”In this version every Button has a visible label. An icon supports the label; on its own, not everyone reads it the same way.
Content
Section titled “Content”- Use sentence case: capitalise only the first word (“Download report”, not “Download Report”).
- Keep it to one to three words, verb first: “Download report”, “Save draft”.
- No punctuation, no “please”, no exclamation marks.
- Use the same word for the same action everywhere: if one screen says “delete”, another should not say “remove”.
- Turkish labels are often longer than their English equivalents; check layouts with Turkish text.
| English | Turkish |
|---|---|
| Save | Kaydet |
| Submit | Gönder |
| Save draft | Taslağı kaydet |
| Download report | Raporu indir |
| Delete file | Dosyayı sil |
Platforms
Section titled “Platforms”- Desktop: Action groups align to the right; the primary Button sits at the far right of the group.
- Mobile: The main action sits at the bottom of the screen, full width and large. Cancel sits below it in the tertiary variant.
variant="glass" and variant="glass-prominent" are for controls over a photo, a video or a busy backdrop. They are glass even without a glass Provider. glass-prominent is tinted with the primary colour and has no highlight, so its label keeps its contrast. Where glass renders solid (more contrast, forced colours, reduced transparency, no backdrop blur) they look like secondary and primary. They have no danger tone. Use at most one glass-prominent per group.