gradient-bars-default
"use client"
import { GradientBars } from "@/components/ui/backgrounds/gradient-bars"
export function DemoOne() {
return (
<div className="relative flex h-full w-full flex-col items-center justify-center overflow-hidden rounded-xl border">
<GradientBars />
</div>
)
}
pnpm dlx shadcn@latest add "https://ui.dalim.in/r/gradient-bars-default.json"
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
Prop | Type | Default | Description |
---|---|---|---|
className | string | – | Custom Tailwind classes for wrapper container. |
color | string | #fff200 | Base color of the gradient (fades to transparent). |
numBars | number | 15 | Number of bars to render across the width. |