shadcn.io is an independent project built on shadcn/ui
On this page5 sections
Installation
Overview
See how far one late supplier reaches, with this supply chain map for React with Base UI. Stowline, a procurement planner, puts three suppliers (Shenzhen, Chennai, Istanbul), two assembly plants (Gdansk, Pune) and three warehouses (Rotterdam, Dubai, Singapore) at their real cities on a live Map that follows your theme, joined by flow arcs. In the band under the map a Native Select picks the late supplier (its marker on the map does too) and a Slider sets the delay from 0 to 21 days. Each plant and warehouse keeps stock for a number of days of cover; when the delay is longer than the cover on the way, the node runs dry, its marker fills, and the arcs carrying late goods turn dashed. The band names the first node to run out ("Pune, in 7 days"), and every row under it says in words whether the node is covered, out in how many days and for how long, or not affected, with a bar of its cover and a tick at the delay. The camera frames the late supplier and everything it reaches. Simplified, not a forecast: the cities are real; the companies, flows and days are invented. Built from Map, Native Select, Slider and Guides. For procurement, planning and operations teams.
FAQ
How is the day a node runs out worked out?
A plant fed by the late supplier runs out due + cover days from now, where due is the days until the first affected shipment was due and cover is the days of stock on hand, and it stays out for the delay minus its cover. A warehouse behind a plant that runs out is out transit + cover days after that, and stays out for what remains of the shortfall after its own cover. A node whose cover is longer than the delay is shown as covered, with the days to spare.
What do the markers and lines mean?
A parcel is a supplier, a factory an assembly plant and a shed a warehouse. The late supplier's marker takes the theme's primary colour and a ring round it, a node that runs out is filled, and a node the supplier does not reach fades. Solid arcs carry goods on time; dashed ones carry late goods, from the supplier or from a node that has run out. The same facts are in the rows, in words.
How do I use my own network, and what stays local?
Edit LINES (an id, a kind, what it is, the city, its longitude and latitude, and the days of cover), SUPPLY (supplier to plant, with the days until the first shipment is due) and SHIP (plant to warehouse, with the days in transit). The map, the band and the rows all read them. Everything runs in the page: nothing is ordered, expedited or sent, and the only network traffic is the map's tiles.
Can I use it without a mouse?
Yes. The select and the slider are ordinary controls, the slider speaks "12 days", and the five rows say what the map draws. The map's zoom buttons work from the keyboard and the map itself takes the arrow keys once focused; the supplier markers are a pointer shortcut to the select. A polite message speaks the result once the controls rest.
Why does the map move when I change the supplier?
It frames the late supplier and every plant and warehouse it reaches, so the part of the chain that matters fills the map: Chennai only feeds Pune, so the map closes on the Indian Ocean, while Shenzhen and Istanbul reach both plants. Pan and zoom freely in between; the next supplier frames again.




