1.5 KiB
1.5 KiB
Installing Creative Tim UI Blocks
Summary
Two CLI methods install blocks and all their shadcn/ui dependencies automatically.
Method 1 — Creative Tim CLI (recommended)
npx @creative-tim/ui@latest add <block-name>
The package also exposes two named binaries you can use directly once installed globally:
npx creative-tim-ui add <block-name>
# or
npx creative-tim add <block-name>
Examples
npx @creative-tim/ui@latest add hero-01
npx @creative-tim/ui@latest add ai-agent-activity-01
npx @creative-tim/ui@latest add agent-management-list-01
npx @creative-tim/ui@latest add pricing-01
npx @creative-tim/ui@latest add testimonials-03
Initialize a new project
npx @creative-tim/ui@latest init
What happens
- Fetches
https://www.creative-tim.com/ui/r/<block-name>.json - Copies the component source into your project
- Runs
npx shadcn@latest addfor eachregistryDependency(button, card, badge, etc.)
Method 2 — shadcn CLI
npx shadcn@latest add https://www.creative-tim.com/ui/r/<block-name>.json
Examples
npx shadcn@latest add https://www.creative-tim.com/ui/r/hero-01.json
npx shadcn@latest add https://www.creative-tim.com/ui/r/ai-agent-activity-01.json
Block Discovery
- Browse all blocks: https://www.creative-tim.com/ui
- AI-readable index: https://www.creative-tim.com/ui/llms.txt
- Latest blocks: https://www.creative-tim.com/ui/blocks/latest
Individual block JSON:
https://www.creative-tim.com/ui/r/<block-name>.json