Timezone select
Choose a time zone by city, region or offset. Every zone the browser knows is listed by region and offset, the reader's own zone is offered first, and the field says what time it is there and how far that is from you.
When to use
- Profile and workspace settings, scheduling and reports that run at a local time.
- Anywhere people pick a zone for someone else.
When not to use
- Showing several clocks at once; that is a world-clock display.
- Choosing a time, which is the time picker's job.
Installation
pnpm dlx shadcn@latest add @caliper/timezone-select
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
TimezoneSelect
5 props
zoneOffset
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- Keyboard and focus come from Radix popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.
Accessibility
It is built on native elements and keeps aria-live in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/timezone-select.mdThe index of every part is at /llms.txt.