Docs
Button

Button

Displays a button or a component that looks like a button.

API Reference

The Button component includes the following props:

Props

PropTypeDefault
color
'gray' | 'primary' | 'green' | 'yellow' | 'red' | 'purple' | 'orange' | 'pink' | 'blue' | null
'gray'
shape
'rounded' | 'pill' | null
'rounded'
size
'sm' | 'md' | null
'md'
stroke
boolean
false

Examples

The following example shows different variants of the Button component.

The following example shows various Button components with "sm" size prop.

Next example shows different destructive Button components.

Edit this page on GitHub