---
title: "Reveal Button | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/reveal-button"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/reveal-button.tsx"
install_command: "npx motion-ui-skill add reveal-button"
dependencies: ["clsx","motion","react","tailwind-merge"]
category: "craft"
subcategory: "buttons"
---

# Reveal Button

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

## Install

```bash
npx motion-ui-skill add reveal-button
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"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 |

## Source Files

- [components/buttons/reveal-button.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/buttons/reveal-button.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
