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-buttonComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxmotionreacttailwind-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
clsxmotionreacttailwind-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 |