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

Button

An action. One solid and one soft per region; everything else ghost.

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.

Variant
Tone
Size
Icon
invite.tsx
import { PlusIcon } from "@qeetrix/icons";
import { Button } from "@qeetrix/react";

<Button icon={PlusIcon}>Invite users</Button>

02

Variants and tones

Emphasis from the variant, intent from the tone.

03

Sizes

Heights from the density tokens: a compact region gets shorter buttons, with no new prop.

04

With an icon

The icon trails the label, in its own zone. An arrow that points forward flips in right to left.

05

Loading and disabled

Loading keeps the width and the focus. Disabled stays focusable, so its reason can be read.

06

Full width

Fills its container, its label centred on the whole button: the one action of a narrow form or a phone screen.

Next — ButtonUsage