Skip to content

shadcn.io is an independent project built on shadcn/ui

Concert Venues Map Block for React

A week of gigs at eight Austin venues on a live map: a strip of nights relights the markers with headliners' initials, and a list gives the night's shows.

On this page5 sections

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

Show a week of gigs on a map with this concert venues listing for React with Base UI. Amplewick, a live-music listings site, puts eight venues in downtown Austin on a live Map that follows your theme, light or dark, each on a real street in its neighbourhood: Red River, East Sixth, Rainey Street, South Congress and more. Above the map a Toggle Group of seven nights, Monday 9 to Sunday 15 November, gives each night's show count. Choosing a night relabels the markers: a venue with a show is solid and carries its headliner's initials, a venue that's dark that night goes hollow and dashed with its own code, and a marker's size is the venue's capacity in three steps. Under the map the night's shows run by doors time with the headliner, the venue, a genre Badge and the tickets left or "Sold out" in words; choosing a show, in the list or on the map, flies the camera to its venue and names it. The list keeps the busiest night's height, so changing the night never moves the page. Built from Map, Toggle Group, Badge, Button and Guides. For listings sites, venue guides, city magazines and any "what's on tonight" page.

FAQ

Where do the nights and shows come from?

NIGHTS names the seven nights and SHOW_LINES holds one line per show: the night, the venue's code, the headliner, the genre, the doors time and the tickets left, where 0 means sold out. showsOn sorts a night's shows by doors time, and the strip's counts, the markers, the list and the status line all read it. Nothing reads the clock.

What do the markers' shapes and sizes mean?

Size is capacity: small under 300, medium under 700, large above. A solid circle with initials has a show that night; a dashed one with the venue's code is dark. The chosen show's venue is inverted with the headliner's name under it. Every fact is also in words, in the list and in each marker's name.

How does the map follow my choice?

The block keeps one aim: every venue, or the chosen show's. MapCamera frames it when the map starts and flies to each new one, quickly or not at all under reduced motion. Changing the night clears the choice and frames every venue again, and so does the map button.

Can I use it without a mouse?

Yes. The nights are a toggle group that takes the arrow keys, and every show is a button in the list with a pressed state; the zoom buttons and the map itself work from the keyboard too. The markers are a pointer shortcut to the same choice. A polite message gives the night's show and sold-out counts once the choice settles.

What stays local, and how do I wire it up?

Everything but the map tiles, which load from CARTO's free basemaps over OpenStreetMap. The neighbourhoods and streets are real; the venues, bands and tickets are invented, and nothing is sold. In your app feed VENUE_LINES and SHOW_LINES from your listings and make a row open the show's ticket page.

How does it look on a phone?

The seven nights keep one row, showing the day, the date and the count, then the map, then the shows, with the genre moving under the tickets. Scrolling the page over the map scrolls the page; two fingers move the map.