Component
Buttons are interactive elements used to trigger actions, submit forms, and navigate users through an application.
preview
- Multiple style variants: solid, soft, outline, ghost
- Different size options for various contexts
- Customizable with different color themes
- Support for icons and text content
- Follows accessibility best practices
- Can be used as buttons, links, or form submitters
preview
solid
soft
outline
ghost
preview
preview
| Shortcut | Description |
|---|---|
Tab | Moves focus to the next focusable element in document focus order. |
Space | Activates the focused button. |
Enter | Activates the focused button. |
| Reference | What Rad UI follows |
|---|---|
Uses native button semantics by default, supports disabled state, and keeps activation behavior aligned with keyboard and pointer input. |
An interactive component used to trigger an action or event, such as submitting a form, opening a dialog, or performing a delete operation.
| Prop | Type | Default |
|---|---|---|
children | ReactNode | -- |
type | enum | 'button' |
className | string | '' |
customRootClass | string | '' |
variant | string | '' |
size | string | '' |
color | string | '' |
disabled | boolean | false |