shadcn.io is not affiliated with official shadcn/ui
Time Zone Hours About Block for React
Ways to reach a phone service, with reply times for email, chat and phone, and a week of coverage bars that shift when you pick a time zone.
Installation
Overview
Ways to reach a company for React with Base UI, written for Ringwell, a fictional phone service for small teams. At the start, a description list gives email, chat and phone, each with a typical reply. At the end, framed, the weekday hours are bars on a 24-hour track. A Select of four time zones shifts those bars: the home window is 8:00–18:00 Pacific, and a zone whose window crosses midnight draws two segments. Weekend rows stay closed. A Status dot marks the standing fact that the team is staffed on weekdays. It is not a contact form. It's built from Select, Status and Guides, with a CSS entrance and your theme's tokens for every colour. For an about page that should say how to reach a team and when someone is there. The address and the hours are example data.
FAQ
How do I change the methods and the hours?
METHODS is the email, the chat and the phone: a name, the address, where it links, and the reply line. ZONES is the Select, and OFFSETS is how many hours each zone adds to the Pacific window of 8:00–18:00. DAYS says which days are open. The bars and the weekday label are computed from that window, so a zone that crosses midnight gets two segments.
What happens when I pick a time zone?
The bars move to that zone and the label above them changes, for example 11:00–21:00 in Eastern. Saturday and Sunday stay closed in every zone. A polite line names the zone, the weekday window and the closed weekend. The page does not jump.
How does the time zone Select work from a keyboard?
The Select opens with Enter or Space and moves with the arrow keys on every library. Choosing a zone updates the chart. The trigger is named "Time zone".
How is it read by a screen reader?
The heading is an h2, and the hours chart is an h3. Email, chat and phone are a description list, and the address of each is a link. The week is a list of seven days. The bars are hidden from assistive technology because the clock time is written beside them. The status dot is decorative; the words "Staffed on weekdays" are what get read.
Related
- Pro
Sortable Media Mentions About
Press and recognitionAn index of eight press mentions for a PR tool as two-line rows, each with the masthead, the kind of piece, the day and the headline as a link, and the reach at its end; a Select sorts them by newest or by reach.
- Pro
Response Times Matrix About
Support and contactSupport promises as a framed matrix of channels by plan, each cell giving the promised first response and last quarter's median, with the Enterprise column ringed and a status dot per channel.
- Pro
Pull Quotes and Press Kit About
Press and recognitionA press page for a ticketing company: three pull quotes set as headlines with the outlet in serif lettering, and a press kit of three real files that download from the page, a boilerplate with a Copy button and a press contact.
- Pro
Guarantee Certificate About
Principles and processA home-warranty guarantee drawn as a certificate: a seal in SVG above the title, three promises with ticks, the fine print behind a disclosure that stays in the page, and a Shine Button to start a claim, in a card in card.
- Pro
Copyable Fact Sheet About
Press and recognitionA company fact sheet for a patient-records tool: six facts as a two-column description list in ruled rows, beside a boilerplate paragraph written from the same facts and a Copy button that puts it on the clipboard.
- Pro
Reverse Split Dot Grid Map Hero
Diagrams and mapsA reverse split contact hero on solid rails: an abstract dot map with a pulsing marker per office fills the first half up to a divider, beside a headline, a Shine Button and three offices as ruled rows.