Border Beam

Motion

Wrap any card with a beam of light that travels around its border. A masked conic gradient in your accent colors, with pricing card demo, pauses for reduced motion.

src/registry/premium/border-beam.tsx/r/border-beam.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/border-beam.json

Usage#

tsx
import { BorderBeam } from "@/components/ui/border-beam"

export function Example() {
  return <BorderBeam />
}

API reference#

BorderBeam props
PropTypeDefault
childrenReact.ReactNode-
durationnumber6
widthnumber1.5
lengthnumber0.18
radiusnumber18
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files
All Animated React components