Gradient Bars

PreviousNext

A dynamic animated canvas component that renders trails following the cursor with configurable physics and color cycling.

gradient-bars-default

Installation

pnpm dlx shadcn@latest add https://ui.dalim.in/r/styles/default/gradient-bars.json

Usage

import { GradientBars } from "@/components/ui/gradient-bars"
<div className="relative h-[500px] w-full rounded-lg border">
  <GradientBars color="#00ffff" numBars={20} />
</div>

API Reference

PropTypeDefaultDescription
classNamestringCustom Tailwind classes for wrapper container.
colorstring#fff200Base color of the gradient (fades to transparent).
numBarsnumber15Number of bars to render across the width.