Installation
Lucide Animated icons are distributed via the shadcn/ui registry. Use the shadcn CLI to add individual icons directly to your project.Prerequisites
You need a React project with shadcn/ui configured. Lucide Animated requires Motion (Framer Motion) as a dependency, which will be automatically added when you install an icon.
Installing Icons
Use theshadcn CLI to add icons to your project. Each icon is installed as a component in your project’s component directory:
- Downloads the icon component source code
- Adds it to your components directory (typically
components/ui/) - Installs the
motiondependency if not already present
Installing Multiple Icons
You can install multiple icons by running the command multiple times:Using Installed Icons
After installation, import and use the icons in your React components:Dependencies
When you install an icon, the following dependencies are automatically added to your project:package.json
Registry Information
The Lucide Animated registry is hosted at:Why shadcn/ui Registry?
The shadcn/ui approach gives you:- Full control: Icon source code lives in your project
- No bundling overhead: Only install the icons you need
- Easy customization: Modify animations and behavior directly
- Type safety: Full TypeScript support
- Version control: Icon code is tracked in your repository