Browse components
Sweep Line
A bright scan line sweeping back and forth over a faint dot grid, leaving a fading afterglow. WebGL.
Sweep Line
Installation
npx shadcn@latest add @glint-ui/sweep-lineFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/sweep-line.json
Usage
import { SweepLine } from "@/components/ui/sweep-line";
<div className="relative h-96">
<SweepLine color="#22d3ee" direction="vertical" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#22d3ee" | Scan line and texture color. |
| speed | number | 1 | Sweep speed multiplier. |
| direction | "vertical" | "horizontal" | "vertical" | Sweep up/down or left/right. |
| cellSize | number | 18 | Dot grid spacing in px. |
| trail | number | 1 | Afterglow length. |
| intensity | number | 1 | Brightness. |
| className | string | — | Extra classes for the root element. |