Skip to main content
ParticleUI

Beam

Animated light beam that slides across a 1px separator line. Configurable color, speed, and delay.

Installation

1

Run the CLI

$npx particleui-cli add beam

Usage

TSX
import { Beam } from "@/components/ui/beam"

export default function Example() {
  return (
    <div className="relative h-32 overflow-hidden rounded-xl border border-border">
      <Beam />
    </div>
  )
}

Props

PropTypeDefaultRequired
widthstring | number"100%"no
durationnumber3no
delaynumber0no
colorFromstring"oklch(78% 0.17 200)"no
colorTostring"transparent"no
classNamestringno

Details

Source filecomponents/ui/beam.tsx
Typeui
Categorieslayout, particles
npm dependencies
Registry deps
Claude skill