l2logic2b/ui

Button

Displays a button or a component that looks like a button.

Installation

npx logic2b@latest add button

Usage

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

<Button variant="outline" size="lg">Click me</Button>

API

Prop Type Default
variant default | destructive | outline | secondary | ghost | link default
size default | sm | lg | icon default
asChild boolean — render as the child element (e.g. a link) false
<Button asChild>
  <a href="/docs">Read the docs</a>
</Button>