Back to Component Library
form React 19 + TypeScript
Button
Interactive button primitive with primary, secondary, glow, outline, and icon variants.
$npx forgeui add button
Variant:
Props API
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'primary' | 'secondary' | 'outline' | 'glow' | 'danger' | 'primary' | Visual style variant. |
| size | 'sm' | 'md' | 'lg' | 'md' | Button dimensions. |
| isLoading | boolean | false | Shows animated loading spinner. |
Accessibility Standards
Full keyboard focus rings, role='button', and aria-disabled support.