Button
Starts an action. Types are Primary, Secondary, Negative, Link, and Tooltip. States are default, hover, pressed, disabled, and loading.
Playground
Variants and states
| Property | Options | Notes |
|---|---|---|
| variant | default, secondary, destructive, link, tooltip | Primary, secondary, negative, link, or a secondary button with a tooltip. |
| loading | true / false | Keeps the label, sets aria-busy, and shows a spinner. |
| disabled | true / false | 30% opacity. Explain the missing precondition nearby. |
| motion | standard timing | Hover, pressed, disabled, and loading use the standard timing and easing. |
Accessibility
- Use a real button element.
- Loading sets aria-busy and keeps the label in the name.