Skip to content

Button

A button or an element styled as a button.

Installation

Usage

The asChild prop renders another element with button styling.

States

Disabled

Loading

Variants

Default

Outline

Secondary

Ghost

Destructive

Sizes

Extra Small

Small

Large

Extra Large

Pill

Disabling click effect

Examples

Icon only

Add aria-label prop to the button so screen readers can identify the button.

With icon

Touch hitbox

For increasing the tap target area, use Hitbox.

Custom color

API Reference