Button
Atombeta@macaw-ds/ui · since 0.1.0Triggers an action. Not navigation; for links use asChild with an anchor.
The action primitive. Four variants carry the weight of an action (one primary per view), three sizes match the control heights, and `loading` turns the button busy without losing its label. Icon-only buttons require an accessible name at the type level.
Playground
Controls are generated from the manifest; the snippet is what the CLI prints. Show focus and Reduced motion appear only when they apply.
Frame theme
Motion is visible when loading is on.
What moves: Background and border colours ease on hover and press; the loading spinner rotates.
Examples
import { Button } from '@macaw-ds/ui';
<Button>Pay invoice</Button>
Examples
The named exports of the examples file, rendered as they ship.
- Default
- Action bar
- As link
- Sizes
- States
- Variants
- With icons