React
Usage
Examples
Sizes
Use the size prop to change the size of the button.
React
Variants
Use the variant prop to change the appearance of the button.
React
Icon
Use icons within a button
React
Colors
Use the colorPalette prop to change the appearance of the button.
React
Disabled
Use the disabled prop to disable the button.
React
Loading
Pass the loading and loadingText props to the button to show a loading spinner and add a loading text.
React
Button Group
Use the ButtonGroup component to group buttons together. This component allows you pass common recipe properties to inner buttons.
React
To create an attached button group, pass the attached prop to the ButtonGroup component.
React
As Link
Use the asChild prop to render a button as a link.
React
Ref
Here's how to access the underlying element reference