Installation
Lanzate UI works with any React + Tailwind stack. Add components to your project with the shadcn CLI.
Set up shadcn/ui
If you don't have it yet, initialize shadcn/ui in your project. This creates the components.json file and sets up the paths and aliases the CLI needs.
npx shadcn@latest initCopy code
Add a component
Use the CLI to copy components from the Lanzate UI registry into your project. Each component brings what it needs: its files, the shared design tokens and Lanzate's cn().
# Add the Button component
npx shadcn@latest add https://lanzate-ui.vercel.app/r/button.json
# Add the Text component
npx shadcn@latest add https://lanzate-ui.vercel.app/r/text.json
# Add several at once
npx shadcn@latest add \
https://lanzate-ui.vercel.app/r/button.json \
https://lanzate-ui.vercel.app/r/text.jsonCopy code
Import and use
Each component installs as a folder under your ui alias, for example components/ui/button/. Import it from the folder.
import { Button } from "@/components/ui/button"
import { Text } from "@/components/ui/text"
export default function Page() {
return (
<div>
<Text render={<h1 />} size="2xl">
Taking off!
</Text>
<Button>Get Started</Button>
</div>
)
}Copy code
Requirements
- React
- 18 or higher
- Tailwind CSS
- v4
- TypeScript
- Optional but recommended
- shadcn/ui CLI
- To install components