Product Design
Beginner4 usesBorder Beam — Animated Border Beam Effect
An animated border beam effect for React, SwiftUI, and React Native. A glowing light travels around the border of any wrapped element — configurable size, color variant (Colorful, Mono, Ocean, Sunset), and strength. One npm install, then wrap your card and ship.
animationreactbordereffectfrontendswiftui
📋
Spec
Border Beam — Animated Border Beam Effect
A glowing light travels around the border of any element you wrap. Available for React, SwiftUI, and React Native.
Install
npm install border-beam
Usage
import { BorderBeam } from 'border-beam';
<BorderBeam>
<YourCard>Content</YourCard>
</BorderBeam>
Props
- size — sm | md | lg (Large, Small, or Line type)
- colorVariant — colorful | mono | ocean | sunset
- strength — 0–1 (e.g. 0.7 = 70%)
Example
<BorderBeam size="md" colorVariant="colorful" strength={0.7}>
<Card>Content</Card>
</BorderBeam>
How to use
- npm install border-beam
- Import BorderBeam and wrap any element.
- Pick a size, color variant, and strength in the playground.
- Copy the generated code and ship.

