Modus UI

Magic Button

Web (React)

A smooth animated button using Framer Motion.

A smooth animated button built with Framer Motion. It supports hover scales and tap interactions out of the box.

Hover and Click for Interaction

Installation

CLI

npx @modus-ui/cli add magic-button

Manual

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

Usage

tsx
import { MagicButton } from "@/components/magic-button";

export default function Example() {
  return <MagicButton>Magic</MagicButton>;
}

Comments

  • No comments yet.