shadcn.io is an independent project built on shadcn/ui
On this page5 sections
Installation
Overview
Tell people where cash costs least, with this ATM finder map for React with Base UI. Pennywren, a cash-access network, puts seven machines round Westlake Park in downtown Seattle on a live Map that follows your theme, from Pike Place to Occidental Square, with a "You" pin at the park. A Native Select picks the amount (40, 100, 200 or 500 dollars) and a Segment Group picks your card: Pennywren, Partner bank or Other bank. Each machine's fee follows typed rules by card and by who runs the machine: a flat fee, a share of the amount and an amount up to which it is free. The rail ranks the machines by fee, then by the walk, and the markers carry the same rank: filled when the withdrawal is free, outlined when it costs. The chosen machine, the best one until you pick another, gets its walking route along the real streets and a strip of facts under the map: the fee and what leaves your account, the walk in minutes and metres, step-free access and deposits, and who runs it. Built from Map, Native Select, Segment Group, Button and Guides. For banks, cash networks and travel apps.
FAQ
Where do the fees come from?
From FEE_LINES: one line for each pairing of your card and the machine's operator, with a flat fee in cents, a share of the amount in basis points (100 is one percent) and an amount in dollars up to which the withdrawal is free. A Partner bank card is free at a partner machine for any amount, and costs $1.00 at a Pennywren machine above $100. The rules are invented and the caption says so: they are not any bank's tariff, and the block is sample data, not advice.
How is the list ordered?
By fee, lowest first, and for equal fees by the walk from the park. The rank is worked out again for every amount and card, so the numbers on the markers and in the list change together. Until you pick a machine the chosen one is the first in the list; once you pick one it stays chosen as the ranking changes.
Are the walks real?
Yes. Each walk was asked once of OpenStreetMap's foot routing (routing.openstreetmap.de) when the block was written, simplified and typed into LINES with its metres and seconds, so the line follows real streets and nothing is fetched while the page runs. The map flies to frame the walk when you choose a machine; the map button at the end of the controls frames all seven again.
What stays local in the demo?
All of it. Nothing is withdrawn, looked up or sent, the "You" pin is fixed at Westlake Park and the block never asks for the device's position. Only the map tiles load, from CARTO's basemaps over OpenStreetMap data. In your app, load the machines and walks near the visitor from your own services and keep centsOf as the one place a fee is worked out.
Can I use it without a mouse?
Yes. The amount is a native select, the card is a segment group that takes the arrow keys, and every machine is a button in the list with a pressed state; the zoom buttons and the map itself (arrows, plus and minus) work from the keyboard. The markers are a pointer shortcut to the same choice. A polite message gives the count of free machines and the chosen one once the controls settle.





