# Reveal Card

> A cover that gives way to its details.

On hover or focus a panel rises over the image with title, text and actions; a tap toggles it on touch.

- Family: Cards
- Plan: Creative. Included with Creative.
- Requires: React, Tailwind CSS v4 and the motion package
- Page with a live preview: https://galactrex.com/ui/reveal-card/
- Licence: https://galactrex.com/ui/license/

## Install

```sh
npx @galactrex/ui login   # once, with an API key from https://galactrex.com/account/
npx @galactrex/ui add reveal-card
```

It installs to `components/galactrex/reveal-card.tsx`, with the shared motion helpers beside it. First time in a project: `npx @galactrex/ui init` (setup guide: https://galactrex.com/docs/ui-components-setup/).

## Usage

```tsx
import { RevealCard } from "@/components/galactrex/reveal-card";

<RevealCard cover={<img … />}>…</RevealCard>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `cover` | `ReactNode` | — | Image or title at rest. |
| `children` | `ReactNode` | — | Details. |
| `reach` | `number` | `0.62` | How far details rise, 0.3–1. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Portfolio.** Project image with credits.

## Accessibility

- Focusable; details are inert while hidden, so tab order is honest.

## Motion

- Spring transform panel; cover scales.
- Reduced motion: no travel.
