Installation
Gaia UI components can be added to your project in two ways: using the official Gaia UI CLI (recommended) or manually using the shadcn CLI with our registry.Prerequisites
Before installing Gaia UI, make sure you have:- Node.js 18+ installed
- A Next.js project (version 13+)
- Tailwind CSS configured in your project
Method 1: Using Gaia UI CLI (Recommended)
The easiest way to add components is using the official@heygaia/ui CLI:
Add a component
Use the This will:
add command to install any component:- Download the component and its dependencies
- Install required npm packages
- Add the component to your
components/uidirectory
Method 2: Using shadcn CLI Directly
You can also use the shadcn CLI directly with full registry URLs:Manual Installation
For complete control, you can manually copy components from the GitHub repository into your project:Copy component files
Navigate to the
registry/new-york/ui directory and copy the component files you need to your project’s components/ui directory.Install dependencies
Check the
registry.json file for the component’s dependencies and install them:Troubleshooting
Missing base components
If you see errors about missing components likeButton or Tooltip, install the shadcn base components:
Import path errors
Make sure yourtsconfig.json or jsconfig.json has the @/ path alias configured: