Back to components

Button

A versatile button component with multiple variants, sizes, and loading states.

Examples

Variants

Sizes

Loading State

Props

PropTypeDefaultDescription
variant"primary" | "secondary" | "outline" | "ghost" | "destructive""primary"Visual style variant of the button
size"sm" | "md" | "lg""md"Size of the button
loadingbooleanfalseWhether the button is in a loading state
disabledbooleanfalseWhether the button is disabled
leftIconReactNode-Icon to display before the button text
rightIconReactNode-Icon to display after the button text