Border Beam
A comet of light travels a crisp masked hairline border, with an optional soft bloom. Static under reduced motion.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/border-beam.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/border-beam. You can also copy the source into components/ui/border-beam.tsx (view on GitHub).
Usage
import { BorderBeam } from '@/components/ui/border-beam'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
duration | number | 6 | Seconds per lap. |
colorFrom / colorTo | string | '#f97316' / '#fdba74' | Tail and head colours. |
size | number | 70 | Beam length in degrees (20–180). |
borderWidth | number | 1 | Border thickness (px). |
glow | boolean | true | Soft bloom under the beam. |
Related Cards components
- Pixel Reveal
Image or generated art dissolves in through a shrinking pixel grid when scrolled into view — random, diagonal or centre-out — with an optional replay.
- Swipe Cards
Stacked deck: drag, flick, tap or arrow-key cards away with keep/pass stamps; the deck springs forward and every swipe is announced. Fades instead of flying under reduced motion.
- Hologram Flip Card
Flip to holographic rear with iridescent sheen.
- Glass Card
Liquid-glass surface with specular rim, inner hairline and layered depth; regular (frosted) or clear variants, and a solid fallback for prefers-reduced-transparency.
- Liquid Morph Card
Border/blob morphs toward pointer.
- Tilt Card
Spring-damped 3D tilt with real perspective, a soft specular glare and a gentle lift. Mouse only; static under reduced motion.