Button
Displays a button component
Was this example helpful?
Usage
import { Button } from "@medusajs/ui"
<Button>Button</Button>
API Reference
This component is based on the button
element and supports all props of this element.
Prop | Type | Default |
---|---|---|
variant | enum | "primary" |
size | enum | "base" |
format | enum | "default" |
isLoading | boolean | false |
Was this section 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?
Icon Only
Was this example helpful?
Loading
Was this example helpful?