Browse components
Pixel Trail
Grid pixels ignite along the cursor path, burn white-hot and shrink away as they fade.
Pixel Trail
Installation
npx shadcn@latest add @glint-ui/pixel-trailFirst 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/pixel-trail.json
Usage
import { PixelTrail } from "@/components/ui/pixel-trail";
<div className="relative h-96">
<PixelTrail pixelSize={24} decay={700} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| pixelSize | number | 24 | Cell size in px. |
| decay | number | 700 | Ms for a lit pixel to fade out. |
| brush | number | 1 | Brush radius in cells. |
| color | string | "#c6ff3d" | Trail color. |
| showGrid | boolean | true | Faint grid lines under the trail. |
| idle | boolean | true | Draw a wandering trail while the cursor is away. |
| className | string | — | Extra classes for the root element. |