Radar
betaA radar scope whose sweep rotates over faint range rings, brightening each blip as it passes and letting it fade.
- Effects & motion
- 1 file
- 1 npm package
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add radarnpm packages installed: class-variance-authority.
import { Radar } from "@/components/ui/radar";Default
Demo
With Status
Custom
<Radar>
| Prop | Type | Default |
|---|---|---|
blipsPoints the sweep lights up as it passes. | RadarBlip[] | DEFAULT_BLIPS |
labelAccessible name. Omit it and the scope is decorative (aria-hidden). | string | — |
periodOne full turn, in milliseconds. Scaled by --motion-scale. | number | 2000 |
ringsNumber of range rings, outermost included. | number | 3 |
size | "sm" | "md" | "lg" | "md" |
Plus every attribute of <div> except children.
Decorative by default: the whole scope is aria-hidden. Pass `label` and it becomes a single image with that name (role="img"), with no focusable parts. It does not report progress, so put any real status ("Searching for devices…") in text, in a live region if it changes. It is not exempt from reduced motion: the sweep settles pointing up and the blips rest at their dim afterglow. Drawn in currentColor, so it follows the text colour it sits in, and the scope never mirrors in right-to-left layouts.
7/7
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — does not apply
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes