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

0.4.0

  • A solid neutral icon button hovers and presses in graphite, as soft does, not in Ember.
  • A ghost danger icon button keeps the danger tint when it's pressed without the pointer over it.

02

0.3.0

  • icon takes an element as well as a component (icon={<PlusIcon />}), so a Server Component can pass one: its type is IconSource.

03

0.1.1

  • mirrorInRtl(Icon): an icon that points forward flips in right to left.

04

0.1.0

  • tooltipSide: the side its tooltip opens on.
  • Its tooltip describes it without repeating its name to a screen reader.

05

0.0.3

  • The neutral tone, for utility actions in toolbars and headers.

06

0.0.2

  • IconButton: square, icon-only, its aria-label required.
  • Its aria-label shows as a tooltip; tooltip={false} turns it off.

Every change to @qeetrix/react

Next — ActionsToggle