Actions & Navigation

Button

A button allows a user to perform an action, with mouse, touch, and keyboard interactions.

Variants#

Sizes#

Disabled#

Icon#

Component props#

NameTypeDescription
variantButtonVariant"default" | "primary" | "outline" | "quiet" | "danger" | "zero"
sizeButtonSize"xs" | "sm" | "md" | "lg" | "xl" (default: "md")
isDisabledbooleanDisables the button
hrefstringRenders the button as an anchor pointing at this URL
targetstringAnchor target when using href (adds rel="noreferrer" for _blank)
renderRenderPropRender prop for polymorphism (e.g., render as a router link)
nativeButtonbooleanOverrides native button semantics for custom render functions or components