A walk or run as a quiet line from GPS points, with no map tiles.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add https://notchset.dev/r/route-trace.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/route-trace.jsonFree, no account or key. One command for every shadcn style. With the @notchset registry added, @notchset/<name> works too.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { RouteTrace } from "@/components/ui/notchset/route-trace";
/* a 3 km loop through a park, as a phone's GPS records it */
const loop: [number, number][] = Array.from({ length: 81 }, (_, i) => {
const t = (i / 80) * 2 * Math.PI;
const r = 1 + 0.2 * Math.sin(2 * t + 1) + 0.09 * Math.sin(3 * t + 2);
return [51.5262 + (Math.sin(t) * r * 0.65 * 650) / 111320, -0.1527 + (Math.cos(t) * r * 1.25 * 650) / 69300];
});
export default function RouteTraceDemo() {
return (
<div className="w-full max-w-[560px]">
<RouteTrace label="Walk route, about 3 km, a loop" points={loop} height={260} />
</div>
);
}components/ui/notchset/route-trace.tsx
points–
readonly (readonly [number, number])[][lat, lng] in the order recorded
label–
stringRequired.
kmMarkstrue
booleanmark each whole kilometre
height320
numberGive your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.0.0 · 2026-10-13
Released with the Notchset system.
Not inside a template yet: it ships on its own, ready for yours.