Icon buttons are a quick and visual way to express an action. Icon buttons can have different shapes using the shape prop.
Show codeHide code
Icon buttons can have a smaller size using the size prop with the sm value.
Show codeHide code
Icon buttons can have different colors. The following example shows a primary button, using the color prop.
Show codeHide code
Icon buttons can have different colors. The following example shows a muted button, using the color prop.
Show codeHide code
Icon buttons can be shown in a loading state. Use the loading prop to show a loading indicator.
Show codeHide code
Icon buttons can be grouped into a single element using the BaseButtonGroup component.
Show codeHide code
Name
Type
Default
typeThe type of button.
If this is not set and the `to` property is set, the component will be treated as a link.
Show exampleHide example
relThe value for the `rel` attribute on the button or link.
This property is only relevant for links.
Show exampleHide example
sizeThe size of the button.
Show exampleHide example
toThe route to navigate to when the button or link is clicked.
If this is set and the `type` property is not set, the component will be treated as a link.
Show exampleHide example
colorThe color of the button.
Show exampleHide example
shapeThe shape of the button or link.
Show exampleHide example
loadingWhether the button or link 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 or link.
This property is only relevant for links.
Show exampleHide example
disabledWhether the button or link is disabled.