# Holo Foil

> A card printed on foil that catches the light.

It tilts toward the pointer while a foil sheen and a glare slide across, like a rare trading card. For collectibles, badges, membership cards, tickets and achievements.

- Family: Originals
- Plan: Creative. Included with Creative.
- Requires: React, Tailwind CSS v4 and the motion package
- Page with a live preview: https://galactrex.com/ui/holo-foil/
- 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 holo-foil
```

It installs to `components/galactrex/holo-foil.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 { HoloFoil } from "@/components/galactrex/holo-foil";

<HoloFoil foil="spectrum">
  <MemberCard />
</HoloFoil>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | — | The card face. |
| `foil` | `"silver" \| "spectrum"` | `"silver"` | Monochrome metal or rainbow foil. |
| `tilt` | `number` | `12` | Largest tilt in degrees. |
| `intensity` | `number` | `0.55` | Foil strength, 0 to 1. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Silver.** Monochrome sheen that fits any brand.
- **Spectrum.** The full rainbow foil for rare moments.

## Accessibility

- Effects are aria-hidden layers; the card content is untouched.

## Motion

- Spring tilt and gradient position follow motion values without re-rendering.
- Touch and reduced motion: flat card with a still sheen.
