Button
Displays a button
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 of its props
Prop | Type | Default |
---|---|---|
isLoading | boolean | false |
asChild | boolean | false |
variant | "primary" | "transparent" | "secondary" | "danger" | "primary" |
size | "small" | "base" | "large" | "xlarge" | "base" |
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?
Loading
Was this example helpful?