Lab

Buttons & badges

Slant / Controls

Primary, secondary, and ghost buttons beside status badges, all drawn from the same tokens.

The theme follows the link: share a page with ?theme=moon.

Usage

  • <Button variant="primary"> is the main action; secondary (the default) and ghost are the lighter weights, with size="sm" and loading as props.
  • <Badge tone="success"> colours a badge from the state tokens; pixel adds the slanted pixel.

Keyboard

Tabmoves between buttons
Enter / Spacepresses the focused button

Accessibility

  • Pressed counts announce through a live region.
  • Icons are hidden from assistive technology; the text carries the meaning.

Buttons & badges in React and SwiftUI.

Source

The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.