Skip to main content
ActionsLevel 1

Button

按钮

WebMobileDesktopDifficulty: Easy

The most basic clickable element in the interface — the user taps it and one thing happens.

01

Live Demo

Actually clickable

Try the disabled state:

Hit "Save": the button goes into loading and gets disabled. Label it with a verb, not "OK".

What you just saw:"Log in" on a sign-in page, "Save" in settings, "Cancel / OK" at the bottom of a dialog — anything that triggers a concrete action is a button.

02

What it actually is

The button is the starting point of every action. It has no special visual identity of its own: it can come in any color and size, but it is always the thing that triggers an action when pressed.

push buttonbtnaction buttonplain buttonsubmit button
03

Anatomy · What it's made of

  1. Container容器

    Min hit area 44×44px, 8px corner radius

  2. Label文字

    Starts with a verb and states the result

  3. Leading Icon前置图标

    Optional, only when it aids recognition

  4. Loading State加载态

    Clicks disabled and a spinner shown

  5. Disabled State禁用态

    Lower contrast but still readable

04

When to Use

When it fits, and when it doesn't
Button usage recommendations
SituationUse it?
Triggering a clear action (submit, delete, save)Yes
The action is the next step on the current pageYes
You need to express hierarchy: Primary + SecondaryYes
It only navigates to another page with no semantics of its ownDepends
More than 3 equally weighted primary buttons on one pageNo

A row of text links at the top of the page that all look like buttons destroys the hierarchy.

A label of "OK" makes users nervous — "Delete photo" is far friendlier than "OK".

05

Similar Patterns

Don't mix these up
Full comparisonButton vs CTAI need to add a button. A regular Button or a CTA?See the table
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Add a pair of buttons at the bottom of the edit page: a secondary "Cancel" on the left and a primary "Save" on the right. While saving, show loading and disable it.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Add a button.

Say this instead

Add a pair of buttons: a primary "Save photo" (dark, solid) and a secondary "Cancel" (white with an outline). The primary button shows a loading state and disables on click.

08

Share this card

Social-ready

Turn this pattern into a 3:4 or 1:1 knowledge card and export it as PNG right in the browser. No backend needed.