Components
Animated Button
3D tilt, hover lift and a glowing underline.
Installation
Run this in a project that has shadcn set up (npx shadcn@latest init).
npx shadcn@latest add https://motion-nest-kappa.vercel.app/r/animated-button.jsonUsage
import { AnimatedButton } from "@/components/ui/animated-button";
export default function Example() {
return <AnimatedButton>Subscribe</AnimatedButton>;
}Props
| Prop | Type | Description |
|---|---|---|
| children* | ReactNode | The button label. |
| className | string | Extra Tailwind classes to change size, colors or shape. |
| ...props | HTMLMotionProps<"button"> | Any other button or Motion prop, such as onClick or type. |