Button
A component for rendering buttons using Medusa's design system.
In this guide, you'll learn how to use the Button component.
Was this example helpful?
Usage#
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 helpful?
Examples#
Button Variants#
Was this example helpful?
Button Sizes#
Was this example helpful?
Button Loading State#
Was this example helpful?
Button with Icon#
Was this example helpful?
Button as Link#
Was this guide helpful?