variant | "primary" | "secondary" | "outline" | "ghost" | "destructive" | "success"Visual treatment. | Default"primary" |
|---|
size | "sm" | "md" | "lg" | "icon"Button size. Give icon-only buttons an accessible name with aria-label. | Default"md" |
|---|
theme | "light" | "dark" | "inherit"Set the palette explicitly or follow the nearest CSS color-scheme. | Default"inherit" |
|---|
isLoading | booleanShow a spinner, mark the button busy, and disable activation. | Defaultfalse |
|---|
loadingText | stringOptional loading label for text buttons. Defaults to the current children. | Default— |
|---|
leftIcon / rightIcon | ReactNodeDecorative icons before or after the label. | Default— |
|---|
fullWidth | booleanFill the width of the parent. | Defaultfalse |
|---|
disabled | booleanDisable pointer and keyboard activation. | Defaultfalse |
|---|
type | "button" | "submit" | "reset"Native button type. Use submit for form submission. | Default"button" |
|---|
className / style | string / CSSPropertiesAdditional styling. Other native button props, including ref, are forwarded. | Default— |
|---|