Button

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

Default

Secondary

Outline

Destructive

Ghost

Loading

API Reference

Button

Interactive button component built on Base UI Button with variant and size styling.

PropTypeDefaultDescription
variant'default' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link''default'Visual style variant of the button
size'sm' | 'default' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg''default'Size of the button
disabledbooleanfalseWhether the button is disabled
classNamestring-Additional CSS classes
...propsReact.ComponentProps<typeof BaseButton>-Base UI Button props including render prop