Browse components
Pixel Highlight
Hovering or focusing fills the element with twinkling pixels that ripple out from the pointer, and ripple away on leave.
Installation
npx shadcn@latest add @glint-ui/pixel-highlightFirst 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-highlight.json
Usage
import { PixelHighlight } from "@/components/ui/pixel-highlight";
<PixelHighlight className="rounded-2xl border p-6">
<h3>Hover me</h3>
</PixelHighlight>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Element to highlight. |
| colors | string[] | ["#c6ff3d","#86efac","#22d3ee"] | Pixel colors. |
| gap | number | 7 | Px between pixel centers. |
| speed | number | 900 | Ripple speed in px per second. |
| twinkle | number | 0.5 | Twinkle strength while lit. |
| className | string | — | Extra classes for the root element. |