Buttons are an essential part of any application. Actions can have different shapes using the shape
prop.
Show codeHide code
Actions can have different colors. The following example shows a primary
button.
Show codeHide code
Actions can have different colors. The following example shows a muted
button.
Show codeHide code
Actions can be shown in a loading state. Use the loading
prop to show a loading indicator.
Show codeHide code
Actions can be grouped into a single element using the BaseButtonGroup
component.
Show codeHide code
Name
Type
Default
type
The type of button.
Show exampleHide example
rel
The value for the `rel` attribute on the button.
Show exampleHide example
to
The route to navigate to when the button is clicked.
Show exampleHide example
color
The color of the button.
Show exampleHide example
shape
The shape of the button.
Show exampleHide example
disabled
Whether the button is disabled.
Show exampleHide example
loading
Whether the button is in a loading state.
Show exampleHide example
href
Using href instead of to result in a native anchor with no router functionality.
Show exampleHide example
target
The value for the `target` attribute on the button.