DocumentationLight Lines

Light Lines

An animated background with vertical lines and traveling light particles. Creates a beautiful, dynamic background perfect for hero sections and landing pages.

Install using CLI

npx shadcn@latest add "https://obsidianui.dev/r/light-lines.json"

Install Manually

1

Install dependencies

npm install clsx tailwind-merge
2

Copy the source code

Copy into components/ui/light-lines.tsx

Note: This is a large component (360+ lines) with SVG paths. Install via CLI for the full source code.

Props

Prop NameTypeDefaultDescription
classNamestring-Additional CSS classes
linesOpacitynumber0.05Opacity of static lines
lightsOpacitynumber0.9Opacity of animated lights
speedMultipliernumber1Animation speed multiplier
gradientFromstring'#2462F6'Gradient start color
gradientTostring'#5999F8'Gradient end color
lightColorstring'#fff'Color of animated lights
lineColorstring'#fff'Color of static lines
childrenReact.ReactNode-Content to overlay

Customization

Custom Colors

<LightLines 
  gradientFrom="#8B5CF6"
  gradientTo="#EC4899"
  lightColor="#ffffff"
/>