Browse components
Radar
A phosphor radar scope: a rotating sweep with a fading trail, range rings, bearing ticks and contacts that ping as the beam passes. WebGL.
Radar
Installation
npx shadcn@latest add @glint-ui/radarFirst 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/radar.json
Usage
import { Radar } from "@/components/ui/radar";
<div className="relative h-96">
<Radar color="#34d399" rings={4} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#34d399" | Phosphor color. |
| speed | number | 1 | Sweep speed multiplier. |
| rings | number | 4 | Range rings inside the scope. |
| trail | number | 1 | Sweep trail length. |
| blips | number | 9 | Number of contacts. |
| size | number | 0.85 | Scope size, fraction of height. |
| className | string | — | Extra classes for the root element. |