Skip to main content

Button

The Button component provides an interactive element with various visual styles, custom color support, and action handling.

Props

Variants

  • "primary" - Primary action button (filled with brand color)
  • "secondary" - Secondary action (subtle background)
  • "outline" - Outlined button with transparent background
  • "ghost" - Minimal style (text only, transparent)
  • "danger" - Destructive action (red/error color)

Sizes

  • "sm" - Small button (padding: 8/14, font: 13px)
  • "md" - Medium button (padding: 12/18, font: 15px) - default
  • "lg" - Large button (padding: 16/24, font: 17px)
  • "xl" - Extra large button (padding: 18/28, font: 18px)

Examples

Basic Buttons

Custom Colors

With Icons

Sizes

Shape Variants

Loading State

Full Width

With Actions

Button Groups

Aligned Buttons

Common Patterns

Form Actions

Confirmation Dialog

Icon-Only Toolbar