shadcn.io is an independent project built on shadcn/ui
On this page5 sections
Installation
Overview
Answer "who covers my address" in one view, with this broadband coverage map for React with Base UI. Fernlink, an internet comparison site, draws five providers' coverage zones over Bristol on a live Map that follows your theme, outlined by technology (fibre solid, cable dashed, fixed wireless dotted) and shaded darker where zones overlap. A Native Select of eight real neighbourhoods puts a house pin in and flies the map there, and a click anywhere on the map drops a pin of its own. The providers whose zone holds the pin, found with a point-in-polygon test, light up on the map and fill a Table with the technology, the download speed, the monthly price and the price per 100 Mbps, cheapest per megabit first, the best value marked. A spot no zone reaches, such as Stoke Bishop, shows an Empty state in a box of the same height, so the page never jumps. Built from Map, Native Select, Table, Empty, Button and Guides. For internet comparison sites, moving guides and utility finders.
FAQ
How is coverage decided?
coveringAt casts a ray east from the pin and counts the edges of each provider's zone it crosses: an odd count means the pin is inside. A provider counts once even when it has two zones, as Skyhop does. Real coverage is a lookup per property, not a shape, so the caption says the zones show where each provider says it reaches.
How is the table sorted?
By the price for each 100 Mbps of download speed, worked out from the monthly price and the speed, never typed. Lowest comes first and is marked Best value, because the cheapest plan a month is not always the best value: at Bedminster, Skyhop is cheapest a month and dearest per megabit.
Where does the data come from, and what stays local?
The eight neighbourhoods are real places in and around Bristol at their real coordinates. Fernlink, the providers, their zones, speeds and prices are invented, typed in PROVIDER_LINES, PLACE_LINES and ZONES in the file. Nothing is looked up, ordered or sent: the pin, the test and the table all run in the page. The map tiles come from CARTO's basemaps over OpenStreetMap data.
Can I use it without a mouse?
Yes. The address select is labelled and holds every place, plus the dropped pin once there is one; the zoom buttons and the Show all of Bristol button work from the keyboard, and the map itself takes the arrow keys and plus and minus once focused. A polite message says how many providers reach the pin and which is the best value once the choice settles.
How do the map's gestures work?
Scrolling the page over the map scrolls the page: hold Ctrl or ⌘ and scroll to zoom, or use two fingers on a phone. A click on the map drops the pin there without moving the camera; choosing a place in the select flies to it, and the map button frames the whole city again.
How does it look on a phone?
The select sits first at full width, then the map, the legend and the table. The table keeps the provider, the price a month and the price per 100 Mbps, with the technology and speed under the name, and its box keeps one height whether three providers reach the pin, one or none.





