Option 1: CLI (recommended)
The CLI handles file placement, dependency installation, and configuration automatically.1
Initialize RareUI
Run the You’ll see a confirmation prompt if
init command from your project root. This creates a components.json file that configures paths and aliases.components.json already exists. After initialization, the file contains your project’s path aliases and registry configuration.2
Add a component
Add the The CLI downloads the component source to
liquid-button component — one of the simplest to get started with.components/rareui/ and installs any required dependencies (framer-motion, clsx, tailwind-merge) automatically.3
Use the component
Import and render the component in any page or layout file.
app/page.tsx
4
Start the dev server
http://localhost:3000 to see the liquid button rendered with its gooey animation.Option 2: Manual copy-paste
If you prefer not to use the CLI, you can copy component code directly from the documentation.1
Install dependencies
Install the packages that RareUI components depend on.
2
Create the utility function
Create
lib/utils.ts with the cn() helper. All RareUI components use this for conditional class merging.lib/utils.ts
3
Create the component file
Create a file at
components/rareui/liquid-button.tsx and paste the component source from the Liquid Button component page.The component will use your @/lib/utils import path, so make sure your tsconfig.json has the @/* path alias configured:tsconfig.json
4
Import and use
app/page.tsx
What’s next?
- Read the CLI reference to learn all available commands and flags
- Explore all component categories in the sidebar
- Run
npx rareui@latest add(no component name) to see the full list of available components