Library navigation

Button

An accessible button with primary, secondary, ghost, destructive, and outline variants.

Installation

bunx shadcn@latest add https://ui.razeev.com/r/button.json

Usage

tsx
import { Button } from "@/components/hangry-ui/components/button";
<Button variant="outline">Continue</Button>

Variants

Use the variant prop to choose from: primary, secondary, ghost, destructive, outline. The preview above shows the available variants together.

Props

PropTypeDefaultDescription
variant"primary" | "secondary" | "ghost" | "destructive" | "outline""primary"Button appearance.
childrenReactNode"Get started"Button label or content.
type"button" | "submit" | "reset""button"Native button behavior.
disabledbooleanfalsePrevents interaction.
onClickMouseEventHandler<HTMLButtonElement>—Called when the button is clicked.
classNamestring""Additional CSS classes on the component root.
Native propsComponentProps<"button">—Forwards native button attributes, aria-* attributes, and event handlers.

Setup notes

Use Tailwind CSS v4. Borders use the global border-border token. No rounded classes or additional packages are required. Customize content with props and styling with className.