shadcn.io is not affiliated with official shadcn/ui
Sales Region Picker About Block for React
An about section for a lead-routing company: pick Americas, Europe or Asia-Pacific and a framed card shows that region's person, hours and booking links.
Installation
Overview
A region picker for React with Base UI, written for Pathwell, a fictional lead-routing service for freight teams. The heading and a vertical toggle of three regions sit at the start, split from a framed card at the end. The card shows one person: initials, languages, hours with a time-zone label, speciality badges, a Shine Button to book 20 minutes and a ghost button to email them. All three cards share one grid cell, so the frame stays the height of the tallest and the page does not move. On a phone the picker comes first and the card stacks under a rule. The page's rails and top rule come from the Guides spine. It's built from Toggle Group, Avatar, Badge, Shine Button, Button and Guides, with a CSS entrance and your theme's tokens. The Shine Button is the only element in your primary colour. For an about page that should introduce the person a buyer actually talks to. The people are fictional. Booking is a link you point at your own scheduler: this demo does not book a meeting or send the email anywhere but the visitor's mail app.
FAQ
How do I change the people and the regions?
The people are REPS at the top of the file. Each has an id the toggle uses, a region label, a name, languages, hours, a zone label, specialities, a covers phrase for the status line, a book href and an email href. The initials are derived from the name. The first region starts pressed.
Why can't a region be switched off?
A toggle with nothing pressed would leave the card blank. The group is multiple-select under the hood, and the handler keeps the newly pressed region and drops the old one. Pressing the pressed region does nothing.
Does Book 20 minutes book a meeting?
No. Book is a link (book on the person, a placeholder such as #book-americas). Point it at your scheduler. Email is a mailto: link to a fictional address, so the visitor's own mail app opens; nothing is submitted from this page. A polite line under the toggle names who is showing.
How is it read by a screen reader?
The heading is the section's only h2. The toggle is named "Region", and each button announces whether it is pressed. The status line names the person and the region. Only the shown card is readable: the other two are aria-hidden and inert, so their links are out of the tab order. The initials are decorative, because the name is written beside them. Book and Email include the person's name for assistive technology.
Related
- Pro
Advisory Board About
Team and leadersAn advisory board for a legal-software company: five advisors in an accordion, each with the practices they cover, why they advise, and one piece of advice.
- Pro
Alumni Network About
CareersWhere a mentoring platform's alumni went: a ranked list of destinations with bars, and one alumna on a framed card with the line from her old role to her new one.
- Pro
A framed, sortable table of a product-feedback tool's seven-member customer council, with expertise badges, the year each member joined and an apply band with a Shine Button.
- Pro
Testimonial Split About
Company storyA construction-management company's description beside one customer quote: a split on a solid divider with the quote on a card in a card, read-only stars, the author and a link to their story.
- Pro
Repo Cards Open Source About
Press and recognitionThree repository cards for a developer toolkit, drawn like repo headers: owner and name, a description, a language letter, rolling star counts, forks, contributor initials and latest release, with a used-by line.
- Pro
Tenure Testimonial Carousel
CustomersA carousel of five long-term customers of a retention product, each with how long they have stayed and read-only stars, beside the figure the block is about: 68% stay three years or longer.