Button
A button allows a user to perform an action, with mouse, touch, and keyboard interactions.
Installation
Options
Variant
Use the variant
prop to control the visual style of the button.
The default variant is "primary"
.
Size
Use the size
prop to control the size of the button.
Examples
Hint
Warning
Nav Icon
Icon Button
Disabled
API Reference
Button
An Button
extends the HTML <button>
component. We list the extended properties only.
Prop | Type | Default | Description |
---|---|---|---|
variant | "primary" | "icon" | "link | "blue" | "soft-blue" | "hint" | "red" | "red-fill" | "white" | "close" | null | "primary" | The visual style of the button. |
size | "xs" | "sm" | "md" | "lg" | "circle" | null | null | The size of the button. |