Modus UI

Animated Button

Web (React)

A smooth button with hover and tap scale animations using Framer Motion.

A smooth button with hover and tap scale animations using Framer Motion. Built to provide tactile feedback and a premium feel to interactive elements.

Hover or Tap to Interact

Installation

CLI

npx @modus-ui/cli add animated-button

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/animated-button.tsx.
  3. Paste the code.

Usage

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

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

Props

PropTypeDefaultDescription
childrenReactNode-The content inside the button.
classNamestring-Additional CSS classes for the button.

Comments

  • No comments yet.