Animated Beam

A light beam that sweeps across the top and bottom edges.

npx arupui add animated-beam
Preview

Animated Beam

Light beams sweep across the edges.

Usage

animated-beam.tsx
import { AnimatedBeam } from "@/components/blocks/animated-beam"

<AnimatedBeam>
  <div className="p-6">Content</div>
</AnimatedBeam>

Props

beamColor
Type: stringDefault: hsl(var(--primary))
beamWidth
Type: numberDefault: 2
duration
Type: numberDefault: 3
Theme Editor

Theme

Radius0.5rem
Letter Spacing0em

Colors

light