Skip to main content
Primitives

Button

Primary action element with 4 variants, 3 sizes, and a loading state. Extends all native <button> attributes.

Preview

Installation

terminal
bash
npx @entrepta/cli@latest add button

// Resolves dependencies, copies the source, and installs npm packages automatically.

Usage

button.tsx
tsx
import { Button } from "@/components/entrepta/button"

<Button>./projects.sh →</Button>
<Button variant="secondary">$ npx @entrepta/cli@latest init</Button>
<Button variant="ghost">cat contact.txt</Button>
<Button variant="command">npx @entrepta/cli@latest add button</Button>
<Button size="sm" loading>Loading…</Button>

Props

PropTypeDefaultDescription
variant"primary" | "secondary" | "ghost" | "command""primary"Visual style variant
size"sm" | "md" | "lg""md"Height and padding scale
loadingbooleanfalseShows spinner and disables the button
asChildbooleanfalseDelegates rendering to child via Radix Slot
Active theme: entrepta, dark mode.