Skip to content
Sign upGet access
MicrointeractionsRoute drawMenu

Route draw (Pro)

ProIncluded in $99

A route the agent plans, drawn like a pen on a map, stop by stop.

ProThe route runs leg by leg at an even speed, each stop popping up with its name as the line reaches it; when it arrives the travel time and distance count in.

The line leaves the first stop and runs leg by leg, each leg at the same speed so long ones take longer. Every stop it reaches pops up with its name, and when the line arrives the travel time and distance count in. You can follow the plan with your eye before reading a word of it.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/route-draw

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { RouteDraw } from "@/components/ui/chatcn/pro/route-draw"

<RouteDraw stops={stops} planned={ready} eta={24} distance={8.2} />

Props

PropTypeNotes
stops{ id, label, x, y }[]On a 100 by 62 map
plannedbooleanTurning it on draws the route
eta / distancenumberMinutes and kilometres

Accessibility

  • The summary line announces the time and distance once the route is drawn.

Motion

  • Legs draw with pathLength, sharing one pace; pins pop 320 ms. Reduced motion: the route is drawn.