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) andghostare the lighter weights, withsize="sm"andloadingas props.<Badge tone="success">colours a badge from the state tokens;pixeladds the slanted pixel.
Keyboard
| Tab | moves between buttons |
| Enter / Space | presses 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.
The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.