Skip to main content

Installation

Usage

Component Code

Examples

The default button variant.

Variants

The Button component supports the following variants:
  • default - Primary button style
  • destructive - For destructive actions
  • outline - Outlined button with transparent background
  • secondary - Secondary, less prominent style
  • ghost - Minimal styling, visible on hover
  • link - Styled as a link

Sizes

Available sizes:
  • xs - Extra small (h-6)
  • sm - Small (h-8)
  • default - Default (h-9)
  • lg - Large (h-10)
  • icon - Square icon button (size-9)
  • icon-xs - Extra small icon (size-6)
  • icon-sm - Small icon (size-8)
  • icon-lg - Large icon (size-10)

API Reference

Button