✨ Beautiful, animated UI components for React & Next.js, built with Motion and Tailwind CSS.
Easy to use. Customizable. Open Source.
Note: This project is in active development — new components and improvements are added regularly.
- 🎨 Ready-to-use animated UI components
- ⚡ Built with Motion for smooth animations
- 🎯 Tailwind CSS friendly and easy to theme
- 🔧 Works seamlessly with shadcn/ui
- 📚 Detailed documentation & code examples
- 🛠️ Extensible — copy, customize, and adapt
Full documentation and examples are available at:
👉 nayanrdeveloper.github.io/shadcn-extras/docs
# Using npm
npm install shadcn-extras
# Or with pnpm
pnpm add shadcn-extras
# Or with yarn
yarn add shadcn-extras
- React 18+
- Tailwind CSS
- Motion (installed automatically via CLI or manually)
If you are already using shadcn/ui, you don’t need to create a lib/utils.ts
file.
Otherwise, make sure to install helpers:
npm install clsx tailwind-merge
and add lib/utils.ts
:
import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
Example: Add a component via the CLI
npx shadcn-extras add kpi-card
Then import it into your project:
import { KpiCard } from '@/components/shadcn-extras/kpi-card';
export default function Example() {
return <KpiCard label='Revenue' value='$24.5k' trend='up' delta='+12%' />;
}
Check the docs for full examples.
We welcome contributions!
Please read our Contributing Guide to learn how to set up the repo, add components, run lint/format, and submit PRs.
Licensed under the MIT License.