v14.2.0

Playroom

Github

Button

View Source

Used for any type of user action, including navigation.

Default
Primary
Warning
Error
Info
Default
Primary
Warning
Error
Info
Default
Primary
Warning
Error
Info
Copy
Edit
Dark
Dark
Dark
Light
Light
Light
Copy
Edit
White
White
White
Light
Light
Light
Copy
Edit
person
person
person
person
Button
Button
Button
Button
Button
Button
Button
Button
Button
Button
Button
Button
Copy
Edit

Props

disabledboolean

Disables button by removing click handlers and making the button transparent.

externalboolean

Opens the linked destination in a new window or tab.

iconstring | 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.

iconLeftstring | Object

Same as above, but renders an icon in the left portion of the button.

iconRightstring | Object

Same as above, but renders an icon in the right portion of the button.

sizeunknown

Sizes the button using values defined in boxSizes

Renders a <Spinner /> in the center of the button. Accepts any valid Spinner props.

squareboolean

Uses a 1:1 ratio for sizing the button.

themestring | boolean

Uses theme defined in buttons.theme. Pass false to not use theme at all.

titlestring | number

Renders a text string in the center of the button.

tostring

Where the browser should navigate to when pressed.

tooltipstring | Object

Wraps button in a <Tooltip />. Accepts any valid Tooltip props.

variant'fill' | 'outline' | 'naked'

Determines the modified style of the button.

  • Props
PreviousBadge.StatusNextButton.Input