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
typeThe type of button.
Show exampleHide example
relThe value for the `rel` attribute on the button.
Show exampleHide example
toThe route to navigate to when the button is clicked.
Show exampleHide example
colorThe color of the button.
Show exampleHide example
shapeThe shape of the button.
Show exampleHide example
disabledWhether the button is disabled.
Show exampleHide example
loadingWhether the button is in a loading state.
Show exampleHide example
hrefUsing href instead of to result in a native anchor with no router functionality.
Show exampleHide example
targetThe value for the `target` attribute on the button.