Getting Started
Get started with Asth UI - animated component library for Next.js
Getting Started
Welcome to Asth UI - a modern component library that combines the developer experience of shadcn/ui with beautiful Framer Motion animations.
What is Asth UI?
Asth UI is a collection of production-ready, animated UI components that you can install directly into your project using the shadcn CLI. Unlike other component libraries, Asth UI:
- ✅ CLI-based installation - Just like shadcn/ui
- ✅ Fully animated - Powered by Framer Motion
- ✅ 100% Free - Open source forever
- ✅ You own the code - Components live in your project
- ✅ Customizable - Full control over styling
Prerequisites
Before you begin, make sure you have:
- Node.js 18+ installed
- A Next.js 14+ project with App Router
- Tailwind CSS configured
- shadcn/ui initialized
Installation
Step 1: Initialize shadcn/ui
If you haven't already set up shadcn/ui in your project:
npx shadcn@latest initStep 2: Install Framer Motion
Asth UI components use Framer Motion for animations:
npm install framer-motionStep 3: Add Asth UI Registry
Update your components.json file to include the Asth UI registry:
{
"registries": {
"asth-ui": {
"url": "http://localhost:3000/api/registry"
}
}
}Note: In production, replace
http://localhost:3000with your deployed URL.
Step 4: Install Your First Component
npx shadcn@latest add -r asth-ui animated-buttonThat's it! The component will be installed in your src/registry/blocks directory.
Usage Example
After installation, you can import and use the component:
import AnimatedButton from '@/registry/blocks/animated-button'
export default function Page() {
return (
<div>
<AnimatedButton>Click me!</AnimatedButton>
</div>
)
}How It Works
- You run the CLI command with the
-r asth-uiflag - The CLI fetches component metadata from our registry API
- Dependencies are installed automatically (Framer Motion, shadcn components)
- Component is copied to your project
- You're ready to use it immediately
Next Steps
- Browse Components to see what's available
- Learn about customization
- Check out examples
Need Help?
- Check the documentation
- Report issues on GitHub
- Join our community on Discord