Copy Email Button

Copy Email Button: One-click copy maintainer email address with inline tooltip feedback ("Click to copy" / "Copied") and zero mailbox popup. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Copy Email Button

npx motion-ui-skill add copy-email

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • react
  • tailwind-merge

Source files

Copy Email Button

One-click copy maintainer email address with inline tooltip feedback ("Click to copy" / "Copied") and zero mailbox popup.

Install

npx motion-ui-skill add copy-email

Dependencies

  • clsx
  • react
  • tailwind-merge

Usage

"use client";

import { CopyEmail } from "@/components/contact/copy-email";

export function CopyEmailDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <CopyEmail email="[email protected]" />
    </div>
  );
}

API Reference

CopyEmail

Prop Type Default Required Description
email string "[email protected]" No Email address to copy
children string — No Visible label. Defaults to email address.
className string — No Additional CSS classes

Browse this category