Off By One UI
← Back to Components

Button

A customizable button component with multiple variants and sizes.

Installation

npx shadcn@latest add https://ui.offbyone.ai/r/button.json

Usage

Import the component:

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

Then use it in your code:

<Button variant="outline">Button</Button>

Examples

Default

Secondary

Destructive

Outline

Ghost

All Variants

Sizes

With Icon

Loading

API Reference

PropTypeDefault
variant"default" | "destructive" | "outline" | "secondary" | "ghost" | "link""default"
size"default" | "sm" | "lg" | "icon""default"
asChildbooleanfalse