# Cursor Card

> The pointer becomes a label that says what a click does.

View, Play, Open: a round cue trails the pointer on a spring. For portfolio tiles and video thumbnails.

- 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/cursor-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 cursor-card
```

It installs to `components/galactrex/cursor-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 { CursorCard } from "@/components/galactrex/cursor-card";

<CursorCard cue="Play" href="/trailer/">…</CursorCard>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | — | Content. |
| `cue` | `string` | `"View"` | Cursor word. |
| `href` | `string` | — | Makes the whole card one link. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Video.** cue="Play".

## Accessibility

- Only replaces the cursor for mice; keyboard focus shows the cue as a badge.

## Motion

- Spring-following label.
