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.json

Usage

import { AnimatedButton } from "@/components/ui/animated-button";

  export default function Example() {
    return <AnimatedButton>Subscribe</AnimatedButton>;
  }

Props

PropTypeDescription
children*ReactNodeThe button label.
classNamestringExtra Tailwind classes to change size, colors or shape.
...propsHTMLMotionProps<"button">Any other button or Motion prop, such as onClick or type.