Border Beam
componentA beam of light that travels around a card border. Great for AI and SaaS surfaces.
Pro planEverything in one place
Installation
Namespace
npx shadcn@latest add @soultel/border-beamURL
npx shadcn@latest add https://asafefe.dev/r/border-beam.jsonUsage
import { BorderBeam } from "@/components/border-beam"
export function Example() {
return (
<BorderBeam className="w-64">
<div className="p-6">Your content</div>
</BorderBeam>
)
}Notes
The beam is a rotating conic gradient sitting one pixel behind the content, so only the ring shows. It pairs well with pricing cards, AI feature callouts, and anything you want to draw the eye toward.
Props
| Prop | Type | Default |
|---|---|---|
duration | number | 5 |
colorFrom | string | var(--primary) |
colorTo | string | #3b82f6 |
borderRadius | number | 14 |
Slow it down with a larger
duration, or match your brand by passing colorFrom and colorTo. The inner surface uses bg-card, so it settles into any dark or light theme.