Skip to main content
  1. Docs
  2. Components
  3. Actions

Icon button

An action shown as an icon. Its name is required, and shows as its tooltip.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<button>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

Icon
Variant
Tone
Size
Tooltip
Tooltip side
edit-user.tsx
import { PencilIcon } from "@qeetrix/icons";
import { IconButton } from "@qeetrix/react";

<IconButton icon={PencilIcon} aria-label="Edit user" />

02

Variants and tones

Ghost by default. Soft or solid only for the one action a region leads with.

03

Sizes

Square, at a control's height in the region's density.

04

Tooltips

Its name shows on hover and focus. Replace the text, move it, or hide it beside visible words.

usr_01J8K2M4PQ

05

Loading and disabled

Loading swaps the icon for a spinner. Disabled stays focusable, so its tooltip can say why.

06

In a row

A row's own actions: neutral ghosts, the destructive one last.

Priya Sharma
Next — Icon buttonUsage