Beaket UI uses a CLI to add components to your project. Components are copied directly into your codebase, giving you full control.
No installation required. Use npx to run the CLI.
Initialize Beaket UI in your project:
npx beaket-ui initThis will:
- Create
beaket.jsonconfiguration file - Create
src/lib/utils.tswith thecn()utility function - Install
clsxandtailwind-mergedependencies
Add a component to your project:
npx beaket-ui add buttonThis will copy the component files to your configured components directory.
The beaket.json file stores your project configuration:
{
"$schema": "https://beaket.dev/schema.json",
"tailwind": {
"css": "src/styles.css"
},
"aliases": {
"components": "@/components",
"utils": "@/lib"
},
"paths": {
"components": "src/components",
"utils": "src/lib"
}
}button- Button component with variants (primary, secondary, outline) and sizes (sm, md, lg)
After adding a component:
import { Button } from "@/components/button";
export function MyComponent() {
return (
<Button variant="primary" size="md">
Click me
</Button>
);
}