shadcn.io is not affiliated with official shadcn/ui
Availability Strip CTA Block for Radix UI
A slim support band with a world clock between the page rails: a headline at the start, a framed figure of three hub clocks that show local time and whether each hub is staffed, and a Shine Button to book a call.
Installation
Overview
A thin support band that proves someone is there, for React with Radix UI. The column itself is the band, between the page rails: a short headline and one sentence with a bold lead at the start; in the middle a framed figure (hairlines with + marks on its corners) of three hub clocks on shared dividers, where New York, London and Singapore each show their local time, a status dot and the word Online or Offline, depending on whether the hub is inside its staffed hours; and a Shine Button "Book a call" at the end. Below lg the three parts stack. It's built from Data List, Status, Shine Button and Guides with your theme's tokens. For docs page footers, support and scheduling pages, and any place a full CTA would feel heavy.
FAQ
How do I change the hubs and their staffed hours?
Edit HUBS at the top of the file: each hub is a city and an IANA timeZone such as Europe/Berlin. OPENS and CLOSES are the staffed hours in each hub's local time, shared by all hubs. The strip's sentence reads them too, so it stays true when you change them. With the defaults of 8:00 to 20:00 in New York, London and Singapore, one hub is always inside its hours, which is what the headline says; if you pick hubs or hours that leave a gap, change the headline.
How does the clock know the time?
The browser reads it, through Intl.DateTimeFormat with a fixed locale and each hub's time zone, so daylight saving is handled for you and the format never depends on a visitor's settings. Until it has read the time the strip shows --:-- and a muted dot, which is also what a visitor with scripts off sees. It then refreshes every 30 seconds, and the timer is cleared when the block leaves the page.
How is the status shown to people who can't see the dot?
The dot is decoration. Each hub also says Online or Offline in text under its time, so the status never rests on colour alone: the dot is green when staffed and muted when not.
Where does the Book a call link go?
It is a link with href="#": point it at your scheduling page.
The Shine Button takes asChild with the link inside, so it can be your router's link.