Button
View Source
Used for any type of user action, including navigation.
Props
boolean
Disables button by removing click handlers and making the button transparent.
boolean
Opens the linked destination in a new window or tab.
string | Object
Renders an Icon in the center of the button. Pass a string or any valid Icon
props.
Must pass a title
or tooltip.title
when using icon-only buttons.
string | Object
Same as above, but renders an icon in the left portion of the button.
string | Object
Same as above, but renders an icon in the right portion of the button.
any
Renders a <Spinner />
in the center of the button. Accepts any valid Spinner props.
boolean
Uses a 1:1 ratio for sizing the button.
string | boolean
Uses theme defined in buttons.theme
. Pass false
to not use theme at all.
string | number
Renders a text string in the center of the button.
string
Where the browser should navigate to when pressed.
string | Object
Wraps button in a <Tooltip />
. Accepts any valid Tooltip props.
'fill' | 'outline' | 'naked'
Determines the modified style of the button.