Time Zone Ruler
ProNewScrub a UTC day across local clocks and see which teammates share working hours.
Installation
pnpm dlx shadcn@latest add @viewport/timezone-ruler
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| date* | stringUTC calendar date, in YYYY-MM-DD format. | — |
| zones* | Zone[]City labels, IANA time zones and local working-hour ranges (start inclusive, end exclusive). | — |
| initialHour | numberSelected UTC hour from 0 to 23. | 12 |
Accessibility
- The time slider supports arrow keys. Local dates, times and availability are provided as text.