A collection of custom UI components with animations and effects, inspired by Magic UI. Free, open source, and copy-paste ready.
- Framework: Next.js 14
- Language: TypeScript
- Styling: Tailwind CSS
- Animations: Framer Motion
- Utilities: clsx, tailwind-merge
- Node.js 18+
- npm or yarn
-
Clone the repository:
git clone https://github.com/kasimkazmi/React-UI-compoent.git cd React-UI-compoent -
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser.
npm run dev- Start the development servernpm run build- Build the project for productionnpm run start- Start the production servernpm run lint- Run ESLint
Visit /docs to explore detailed documentation for each component, including:
- Live previews
- Code examples with copy-to-clipboard functionality
- Installation instructions
- Props documentation
- AnimatedButton - Button with hover and tap scale animations
- RotatingCard - Card that rotates on hover with spring physics
- FloatingText - Text with continuous floating animation
- PulseButton - Button with pulsing scale effect
Each component is showcased on the main page with live previews and code snippets. Simply copy the code and paste into your project.
import { AnimatedButton } from "@/components/ui/animated-button"
export default function MyComponent() {
return <AnimatedButton>Click Me</AnimatedButton>
}src/
├── app/
│ ├── docs/ # Documentation pages
│ │ ├── components/ # Individual component docs
│ │ └── page.tsx # Docs index
│ ├── layout.tsx
│ ├── page.tsx # Homepage with component previews
│ └── globals.css
├── components/
│ ├── ui/ # UI components
│ ├── component-preview.tsx # Preview component with code toggle
│ └── copy-button.tsx # Copy-to-clipboard functionality
└── lib/
└── utils.ts # Utility functions
- Fork the repository
- Create a feature branch
- Add your component in
src/components/ui/ - Create documentation in
src/app/docs/components/ - Update the sidebar navigation in
src/app/docs/layout.tsx - Submit a pull request
This project is open source and available under the MIT License.