Reveal Button

Reveal Button: Button that conceals and reveals a sensitive secret value on hold or toggle with blur-in transitions. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Reveal Button

npx motion-ui-skill add reveal-button

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

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Reveal Button

Button that conceals and reveals a sensitive secret value on hold or toggle with blur-in transitions.

Install

npx motion-ui-skill add reveal-button

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { RevealButton } from "@/components/buttons/reveal-button";

export function RevealButtonDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <RevealButton>Click Me</RevealButton>
    </div>
  );
}

API Reference

RevealButton

Prop Type Default Required Description
secret string — Yes Confidential text string revealed on interaction
className string — No Additional CSS classes

Browse this category