# border-beam-react

Guides your coding agent to implement traveling border glow effects in React using the border-beam package with hardware-accelerated CSS.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 407 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/border-beam-react/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/border-beam-react

## What it does

This skill supplies patterns for embedding the `BorderBeam` wrapper into React 18+ interfaces. It creates an animated beam traveling around cards, inputs, and action buttons. Because the visual effect runs directly on CSS `@property`, it utilizes GPU acceleration without pulling in heavy animation runtimes.

The wrapper inspects the first nested tag to copy its `border-radius` automatically. The beam layer keeps `pointer-events: none`, so wrapped controls stay fully clickable. You can choose presets like `sm`, `md`, or a bottom-only `line`, alongside predefined color themes such as `colorful`, `ocean`, `sunset`, and `mono`.

Older environments will fail: client browsers require Chrome 85+, Safari 15.4+, or Firefox 128+ to render the custom properties. The component also skips automatic `prefers-reduced-motion` detection, which means you must evaluate the media query in your own code and toggle the `active` prop.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill border-beam-react -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/border-beam-react/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/border-beam-react/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill border-beam-react -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/border-beam-react/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill border-beam-react -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/border-beam-react/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills border-beam-react
```

2. **Manually: put the files in place**
- File: `.github/skills/border-beam-react/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill border-beam-react -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/border-beam-react
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/border-beam-react/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill border-beam-react -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/border-beam-react/SKILL.md

## When to use it
- wrap cards in a traveling neon glow effect without external motion libraries
- add an animated highlight beneath input fields using the line preset
- trigger border beam animation on hover or state change
- adapt border glow colors and intensity for light or dark UI modes

## Example prompts
- Wrap this pricing card in BorderBeam with the sunset color palette
- Add a traveling border glow to the search bar using the line preset
- Set up BorderBeam to fade in only when the container is hovered

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 199 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
