Button Component

Documentation for the Button component.

1 min read

Button

The Button component is used to trigger an action or event, such as submitting a form, opening a dialog, or canceling an action.

Usage

import { Button } from "@/components/ui/button";

export default function ButtonDemo() {
  return <Button>Click me</Button>;
}

Variants

Supports various variants like default, destructive, outline, secondary, ghost, link.