Skip to content
SevenUI
Sign in
On this page

Button

Displays a button built on the Base UI Button primitive, with default, secondary, outline, ghost, destructive, and link variants.

Installation

Bash

Usage

Examples

Variants

Sizes

Text sizes pair with icon-* counterparts for icon-only buttons — give those an aria-label.

Disabled

Loading

Pair disabled with the Spinner component while an action is in flight.

API reference

Button

Extends the Base UI Button primitive — all its props (including render and disabled) apply.

PropTypeDefault
variant"default" | "outline" | "secondary" | "ghost" | "destructive" | "link""default"
size"default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg""default"

buttonVariants is also exported for styling custom elements.

Was this page helpful?