Line
ProThree stops on a green track, with a dot that rides the line and comes back.
HarajukuShibuyaEbisu
When to use
- A route with a few named stops, where the position on the line matters.
- A progress story that should keep moving without a chart.
When not to use
- More than four stops. The labels run out of room.
- A precise timetable. The dot is a loop, not a schedule.
Usage
- Copy the prompt and name the stops in order.
- Keep the track on one line and let the dot travel and return.
- On reduced motion, park the dot on the current stop.
example.tsx
1import { CityLine } from "@/widgets/city-line";2 3export function Preview() {4 return (5 <div className="h-64">6 <CityLine />7 </div>8 );9}