Skip to content
shadcn.io

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.

Framework
UI library

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

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.

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.

How does it fit on a phone?

The picker stacks above the card, with a rule between them. The region buttons are full width. The card's actions wrap. Nothing scrolls sideways at 320 pixels, and in a layout that runs the other way the divider moves to the other side of the card.

What moves, and what happens with reduced motion?

The picker column fades up once on load. The card swaps in place with no transition, so reduced motion changes nothing about the swap, and the entrance itself is skipped. Nothing is stored, and nothing loops.

  • Pro

    Advisory Board About

    Team and leaders

    An 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

    Where 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

    A 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 recognition

    Three 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

    A 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.