Option 1: CLI (recommended)
The CLI handles file placement, dependency installation, and configuration automatically.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.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.Option 2: Manual copy-paste
If you prefer not to use the CLI, you can copy component code directly from the documentation.Create the utility function
Create
lib/utils.ts with the cn() helper. All RareUI components use this for conditional class merging.lib/utils.ts
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
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