Browse components
Scanner
A bright scan line sweeping back and forth over a faint dot grid, leaving a fading afterglow. WebGL.
Scanner
Installation
npx shadcn@latest add @glint-ui/scannerFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/scanner.json
Usage
import { Scanner } from "@/components/ui/scanner";
<div className="relative h-96">
<Scanner 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. |