CompassPRO
A fine compass whose needle hunts, settles on a bearing and sends out a thin sonar arc, then swings to a new bearing, for when the agent is searching.
Code
3 files · 161 lines of TypeScriptPRO
Compass is part of Pro
Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.
Motion notes
- The needle moves on an underdamped step response: it leaves the old bearing from rest, overshoots, swings back and settles. Hunting, then finding, is what searching feels like.
- Once settled, a thin arc and a fainter echo travel outward along the bearing in a fixed cone, and the bezel lights where the ping crosses it. Each new bearing swings a good way round from the last.
- A compass, not a clock: a slim lozenge needle with a bright north half and a ghosted south half, fine 10° graduations with heavier cardinals and a north chevron. The scale thins to a 16-point rose at pill size and four cardinals at 24px.
- Reduced motion shows the needle settled with the ping halfway out.
Usage
Example
<StatusPill icon={<CompassSonar size={32} />} label="Searching" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | 32 | Size in px. |
| cycle | number | 3.2 | Seconds per bearing: hunt, settle, ping. |
| className | string | — | Classes for the canvas. |