shadcn.io is an independent project built on shadcn/ui
On this page5 sections
Installation
Overview
Let people ask a venue for a date from the map they chose it on, with this event venue finder for React with Base UI. Hirehall, a venue booking site, lays out an app screen for Bristol: a top bar with the party's size in a Number Input and a Saturday in a Native Select, a pane listing seven halls, lofts and rooms round the harbour with their day rates, and a live Map of them that follows your theme, light or dark. Each venue's marker is a pill with how many it holds; the guests and the date decide which fit, and the rest go dashed, with the reason in words in the list (too small, or booked that day) and the count of open venues in the bar. Choosing a venue, in the list or on the map, flies the camera there and fills the request at the pane's foot: the date, the guests and the rate, a note in a Textarea, and one Shine Button, Send request. It refuses a venue that can't take the party and says why; a sent request ticks the venue on the map and in the list and says it was saved in the demo. Built from Map, Number Input, Native Select, Field, Textarea, Shine Button, Button and Guides. For venue, studio, meeting-room and party hire sites.
FAQ
How does it decide which venues fit?
reasonOf compares the guests with the venue's capacity and the chosen Saturday with the dates it's already booked (LINES holds both), and returns "Too small", "Booked" or nothing. The pills, the list, the count in the bar and the request all read it, so changing the guests or the date updates them together.
What does Send request check?
problemOf turns the same test into a sentence: no guests, more guests than the venue holds, or a booked day. While there's a problem the line over the button says it in muted text; pressing Send request refuses, shows it with an alert icon and sends nothing. With none, the request is saved in the tab and the venue gets a tick.
How does the map follow my choice?
The block keeps one aim: every venue, or the chosen one. MapCamera frames it when the map starts and flies to each new one, quickly or not at all under reduced motion. The map button frames every venue again.
Can I use it without a mouse?
Yes. The guests field takes the arrow keys and typed numbers, the Saturday is a native select, every venue is a button in the list with a pressed state, and the note and Send request follow in the form. The markers are a pointer shortcut to the same choice. The open count and the request's result are polite live messages.
What stays local, and how do I wire it up?
Everything but the map tiles, which load from CARTO's free basemaps over OpenStreetMap: no request leaves the page, and the message says so. The neighbourhoods are real; the venues, rates and bookings are invented. In your app post the request from send, check capacity and dates on the server too, and feed LINES from your venues.





