Skip to main content
ActionsLevel 1

Icon Button

图标按钮

WebMobileDesktopDifficulty: Easy

A button with only an icon and no text, which is only meaningful when paired with a tooltip.

01

Live Demo

Actually clickable
Hover (or Tab to) any icon and a tooltip appears. An icon button needs one, or users won't know what it does.

What you just saw:The row of small icons in the top-right of an editor (bold, italic, align), the heart and download keys on an image, the delete X on each chat list row — all icon buttons.

02

What it actually is

An icon button trades space for clarity: it fits into a toolbar, but the user has to already know what the icon means. So its premise is that the icon is universal enough, or that a tooltip backs it up.

icon buttonsymbol buttonicon-only buttonglyph button
03

Anatomy · What it's made of

  1. Hit Area热区

    32px visually, hit area expanded to 44×44px

  2. Icon图标

    20–24px, stroke width kept consistent at 1.75px

  3. Tooltip悬停提示

    Required, or add an aria-label

  4. States状态

    Three states: hover / active / disabled

04

When to Use

When it fits, and when it doesn't
Icon Button usage recommendations
SituationUse it?
The toolbar needs to hold many actionsYes
The icon is an industry-standard symbol (search, close, share)Yes
Space is extremely tight (such as a card corner)Yes
A feature appearing for the first time, with a non-obvious iconNo
It is the primary action of the pageNo

A feature that needs to be discovered (say "Export") should not be icon-only — users would have to guess the meaning.

Single Chinese characters used as icons are nearly unreadable in a Chinese UI.

05

Similar Patterns

Don't mix these up
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Add a group of icon buttons to the right of the editor toolbar: bold / italic / delete. Delete uses the danger red, and a tooltip appears on hover.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Add a few small icons that can be tapped.

Say this instead

Add a group of icon buttons (20px icon, 44×44px hit area), each with an aria-label and a hover tooltip, delete in the danger red, and the whole group wrapped in role="toolbar".

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.