bearnie

Button

Triggers actions and events.

Installation

npx bearnie add button
npx bearnie add button

Usage

import { Button } from "@/components/bearnie/button"
<Button>Button</Button>

Examples

Secondary

Outline

Ghost

Destructive

Success

Warning

Info

With left icon

With right icon

Icon only

Pill

Loading

Sizes

Anatomy

  • Button - A single interactive element with slots for icons

Props

Button

Prop Type Default Description
variant default | destructive | outline | secondary | ghost | link | success | warning | info default Visual style variant
size xs | sm | default | lg | xl default Button size
iconOnly boolean false Square button for icon-only use
pill boolean false Renders with fully rounded corners
href string - Renders as anchor link
disabled boolean false Disables the button
class string - Additional CSS classes