# Border Beam Card

> The highlighted card, with a light round its border.

For the plan, release or offer that should be found first. One beam or a pair.

- 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/border-beam-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 border-beam-card
```

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

<BorderBeamCard badge="Recommended">…</BorderBeamCard>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | — | Content. |
| `badge` | `ReactNode` | — | Small label. |
| `paired` | `boolean` | `false` | Two beams. |
| `duration` | `number` | `7` | Seconds per lap. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Plan.** Recommended pricing card.

## Accessibility

- Beam is decorative.

## Motion

- Border Beam's transform rotation.
- Reduced motion: still.
