Quick Start
Install Hacline source through the shadcn Registry in a React 19 and Tailwind CSS v4 project.
Requirements
- React
>= 19.0.0 - Tailwind CSS
>= 4.0.0 - Node.js
>= 20.18.1
Installation
Run this in a React project with Tailwind CSS and an import alias configured. The CLI installs the Button source and its dependencies and adds Hacline tokens to your global stylesheet.
pnpm dlx shadcn@latest add https://hacline.huanan-caoo.workers.dev/r/button.jsonRender Your First Component
import { Button } from "@/components/ui/hacline/components/button";
export function Example() {
return (
<div className="flex items-center gap-3">
<Button variant="primary">Primary Action</Button>
<Button variant="outline">Outline Action</Button>
<Button variant="ghost">Ghost Action</Button>
</div>
);
}Next Steps
To install a complete Block with its components and theme, use the Blocks catalog.