UI

Button

Displays a button

Was this example helpful?

Usage#


Code
import { Button } from "@medusajs/ui"
Code
<Button>Button</Button>

API Reference#


This component is based on the button element and supports all of its props

PropTypeDefault
isLoading
boolean
false
asChild
boolean
false
variant
"primary"
|"transparent"
|"secondary"
|"danger"
"primary"
size
"small"
|"base"
|"large"
|"xlarge"
"base"
Was this page helpful?

Examples#


Primary#

Was this example helpful?

Secondary#

Was this example helpful?

Transparent#

Was this example helpful?

Danger#

Was this example helpful?

Disabled#

Was this example helpful?

With Icon#

Was this example helpful?

Loading#

Was this example helpful?