About
A polar radar-style display that plots angle-distance samples with a sweeping scan ray, range rings, and hover tooltips reporting bearing and distance.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Lidar Scan to your project and fits it to your theme.
Code
How Lidar Scan is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { LidarScan } from "@/components/ui/lidar-scan";
export default function LidarScanDemo() {
return (
<div className="flex w-full h-screen items-center justify-center bg-background">
<LidarScan
samples={[
{ angle: 0, distance: 5 },
{ angle: 90, distance: 8 },
]}
maxRange={10}
heading={20}
scanAngle={60}
showRays
/>
</div>
);
}








