shadcn.io is an independent project built on shadcn/ui
On this page5 sections
Installation
Overview
Show travellers how far their gate is with this airport terminal map for React with Base UI. Pierwick, an airport information screen, floats its departures board over a live Map of Zurich Airport that follows your theme, light or dark: the three docks, A, B and E, drawn on the real piers, and each flight's gate as a pill at the gate's real place. Choosing a flight, in the board or on the map, draws its walk from the Airside Center, where every passenger comes out of security: through the hall and along the dock, or down to the Skymetro, the underground train to Dock E, and along that dock. The camera flies to frame the walk, and the board's foot gives the minutes, the metres on foot, the train and the walk in words, leg by leg. Delays are in words with the new time, and the plane button frames every gate again. On a phone the board docks under the map. Built from Map, Button and Guides. For airports, stations, campuses, hospitals and any large building with a wayfinding screen.
FAQ
How is the walk worked out?
pathOf joins the Airside Center, the way to the dock (or the two Skymetro stations), the point on the pier level with the gate and the gate itself. metresBetween measures each leg on a flat earth, near enough inside an airport, and the metres on foot leave out the train. The minutes are those metres at 80 metres a minute, rounded up, plus four minutes for the Skymetro and its wait. No queues, moving walkways or boarding times are counted.
Are the gates and docks real?
Yes. The gates are at their places on OpenStreetMap, the docks' outlines are traced from it, and the Skymetro really links the Airside Center to Dock E. Everything else is invented: the airlines, the flight numbers, the destinations' times and the statuses, and "now" is the fixed NOW.
How does the map follow my choice?
The block keeps one aim: every gate, or the chosen flight's walk. MapCamera frames the aim when the map starts and flies to each new one, quickly or not at all under reduced motion, keeping it clear of the board on wide screens. Pan and zoom freely in between; the plane button frames every gate again.
Can I use it without a mouse?
Yes. Every flight is a button in the board with a pressed state, and the zoom buttons and the plane button work from the keyboard; the map itself takes the arrow keys and plus and minus once focused. The pills are a pointer shortcut to the same choice. A polite message reads the flight, its gate, the minutes and the walk once the choice settles.
What stays local, and how do I wire it up?
The board and the walks are typed sample data and nothing is booked or sent; only the map tiles load, from CARTO's free basemaps over OpenStreetMap, with their credit kept in the corner. In your app feed LINES from your flight information service and swap pathOf for your own wayfinding graph.





