shadcn.io is an independent project built on shadcn/ui
On this page5 sections
Installation
Overview
Plan a road trip one day at a time, with this trip planner map for React with Base UI. Wanderkit, a holiday planner, lays out three days along Iceland's south coast, from Reykjavík round the Golden Circle and down the Ring Road to the Jökulsárlón glacier lagoon: eleven stops at their real places on a live Map that follows your theme, joined by the real roads between them. A Tabs list picks the day, and each tab shows that day's driving time, so the days can be balanced at a glance; the map flies to the day's road, drawn solid in the primary colour with its stops numbered, while the other days stay dashed with hollow stops (press one to open its day). The side list gives the day's stops in driving order, each with the drive from the stop before and a "Move to day" Native Select; because the trip keeps its order, moving a stop takes the stops between it and its new day along, and every day's hours and kilometres re-derive. A moon marks where you sleep, an empty day shows an empty state, and the header's Export button downloads the itinerary as a plain-text file. Built from Map, Tabs, Native Select, Download Trigger, Button, Empty and Guides. For travel, tour and road-trip apps.
FAQ
How is each day's driving worked out?
Each stop has the road into it from the stop before (the first from Reykjavík), asked once from OSRM's driving profile over OpenStreetMap when the block was written and typed into LEG_LINES with its metres and minutes. A day starts where you slept, the day before's last stop, so its time and kilometres are the sum of the roads into its own stops. It counts driving only, at the router's estimate, not the time spent at each stop, the weather or the traffic.
What happens when I move a stop to another day?
The trip keeps its driving order, so a day is always a run of stops. movedOf puts the stop on its new day, and the stops between it and that day go along: moving Vík to day 3 moves Vík alone, while moving Seljalandsfoss to day 3 takes Skógafoss, Dyrhólaey, Reynisfjara and Vík with it and leaves day 2 empty. Every tab's time updates at once, and the status line reads all three days out.
What does Export save?
A plain-text file, south-coast-itinerary.txt, written in the browser from the days as they stand: each day's driving time, kilometres and starting point, then its stops in order. Nothing is sent anywhere, and nothing is booked or saved between visits.
What is real, and where do the maps come from?
The places and the roads are real; Wanderkit and the trip are invented sample data. The roads are typed into the file, so the block calls no router; only the basemap is loaded, CARTO's free tiles over OpenStreetMap data, drawn by MapLibre GL under the Map component, with their credit in the corner.
Can I use it without a mouse?
Yes. The days are tabs (arrow keys), each stop in the list is a button that flies the map to it, with its own Move to day select, and the crosshair button frames the whole day again. The map itself takes the arrow keys and plus and minus once focused. A polite message says what changed after each move or choice.
How does it look on a phone?
The tabs keep each day's driving time under its name, the map comes next (scrolling the page over it scrolls the page; two fingers pan it), and the day's stops follow in a box of fixed height that scrolls, so switching days never changes the length of the page. The selects open the phone's own picker.





