Docs
Beam Background

Beam Background

Canvas-based animated light beam sweeps ideal for dark hero sections.

Beam Background

Canvas-based animated light beam effects

Installation

Usage

import { BeamBackground } from "@/components/pioneerui/beam-background"
 
export default function Hero() {
  return (
    <BeamBackground numBeams={8}>
      <h1 className="text-white text-4xl font-bold">Dark Hero</h1>
    </BeamBackground>
  )
}

Props

PropTypeDefaultDescription
numBeamsnumber6Number of light beams
beamColorsstring[]purple/indigo/pinkBeam rgba colors array
childrenReact.ReactNodeundefinedContent rendered above canvas
classNamestringundefinedAdditional CSS classes