---
title: "Time Zone Select"
description: "Search every time zone by city, country, or offset, and pick one. Your own zone sits at the top of a list grouped by region."
url: https://gelatinui.com/components/time-zone-select
markdown_url: https://gelatinui.com/components/time-zone-select.md
access: free
install: "npx shadcn@latest add @gelatin-ui/time-zone-select"
registry_item: https://gelatinui.com/r/time-zone-select.json
version: "2026-11-09"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Time Zone Select

> Search every time zone by city, country, or offset, and pick one. Your own zone sits at the top of a list grouped by region.

Page: https://gelatinui.com/components/time-zone-select

## When to use it

Best for: A time zone pick from a searchable list of every zone, grouped by region.

- Use it in a settings form or an event form.
- Use `timeZones` to limit the list, such as to your office cities.
- Use `isItemDisabled` for zones people cannot pick.

## When not to use it

- For a short list of a few options, use a [Select](https://gelatinui.com/components/select.md).
- To show a time in another zone, use [Local Time](https://gelatinui.com/components/local-time.md).

## Notes for agents

- The value is an IANA id string, such as `"Europe/Belgrade"`. `name` sends it in a form.
- People can search by city, country, or offset, such as `gmt+2` or `+5:30`.
- The zone of the browser shows at the top. `localTimeZone={null}` hides that group.
- Pass `date` to set the moment that the offsets use.
- The list is virtual, so only the rows on screen are in the DOM.

## Anatomy

```text
TimeZoneSelect
├─ TimeZoneSelectLabel (0..n)
├─ TimeZoneSelectTrigger (0..n)
├─ TimeZoneSelectInput (0..n)
├─ TimeZoneSelectContent (0..n)
├─ TimeZoneSelectGroup (0..n)
├─ TimeZoneSelectGroupLabel (0..n)
├─ TimeZoneSelectItem (0..n)
├─ TimeZoneSelectEmpty (0..n)
└─ TimeZoneSelectDescription (0..n)
```

## API reference

### TimeZoneSelect

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `timeZones` | `readonly string[]` |  | The zone ids to list. Default: `Intl.supportedValuesOf("timeZone")` (418 in Chrome and Node 22). |
| `date` | `Date` |  | The moment of every offset. Default: now, read when the list opens. Pass the event date, so a 5 Nov event shows Belgrade at GMT+1 (after the clocks change), not the GMT+2 of today. |
| `localTimeZone` | `string \| null` |  | The zone of the pinned "Your time zone" group. Default: the zone of the browser. `null` hides the group. A zone that is not in `timeZones` is not pinned. |
| `labels` | `Partial<{ localGroup: string; }>` |  | The words (`TIME_ZONE_SELECT_LABELS`). Keep the object stable. |
| `getItemLabel` | `function` |  | The text of a row, sorted and searched. Default: the city (`zone.city`). |
| `getGroupLabel` | `function` |  | The name of a region group (`"Europe"`). Default: the region; "Other" for ids with no area. |
| `isItemDisabled` | `function` |  | Rows that the user cannot pick. They stay in the list at 50%. |

Also takes every prop of Base UI `Combobox.Root`: https://base-ui.com/react/components/combobox

### TimeZoneSelectTrigger

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `size` | `ControlSize` |  | 24, 28, 32, or 36px: the field sizes of `controlVariants`. |
| `placeholder` | `ReactNode` |  | The text while no zone is chosen ("Select a time zone"). Muted. |
| `children` | `function` |  | Custom text for the chosen zone. Default: the id, then "· GMT+2" in muted tabular digits. A custom offset on a server-rendered page needs `suppressHydrationWarning` (see the root). |

Also takes every prop of Base UI `Combobox.Trigger`: https://base-ui.com/react/components/combobox

### TimeZoneSelectContent

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `arrow` | `boolean` |  | Show an arrow that points at the frame. The gap grows from 4px to 8px. |
| `backdrop` | `boolean` |  | Put a clear layer under the popup (Base UI `Combobox.Backdrop`). |
| `portalProps` | `Omit` |  | Other Base UI props of the inner parts. A `className` here adds to the component classes. |
| `positionerProps` | `PopupPartProps` |  |  |
| `backdropProps` | `PopupPartProps<ComboboxBackdropProps>` |  |  |
| `arrowProps` | `PopupPartProps<ComboboxArrowProps>` |  |  |
| `itemProps` | `function` |  | Props of the row of each zone (`TimeZoneSelectItem`), and any `data-*` attribute. |

Also takes every prop of Base UI `Combobox.Popup`: https://base-ui.com/react/components/combobox

### TimeZoneSelectItem

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `value` | `string` |  | The zone id of the row. |

Also takes every prop of Base UI `Combobox.Item`: https://base-ui.com/react/components/combobox

### TimeZoneSelectEmpty

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `children` | `function \| ReactNode` |  | The message. A function gets the query. Default: No time zone matches “{query}”. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TimeZoneSelect | `time-zone-select` |  |  |  |
| TimeZoneSelectLabel | `time-zone-select-label` |  |  |  |
| TimeZoneSelectTrigger | `time-zone-select-trigger` |  |  |  |
| TimeZoneSelectInput | `time-zone-select-input` |  |  |  |
| TimeZoneSelectContent | `time-zone-select-content` |  | `--anchor-width` |  |
| TimeZoneSelectGroup | `time-zone-select-group` |  |  |  |
| TimeZoneSelectGroupLabel | `time-zone-select-group-label` |  |  |  |
| TimeZoneSelectItem | `time-zone-select-item` | `data-selected` |  | `motion-timing` |
| TimeZoneSelectEmpty | `time-zone-select-empty` |  |  |  |
| TimeZoneSelectDescription | `time-zone-select-description` |  |  |  |

## Usage

Put a label, the trigger, and the content with the search input in the select, so people find a zone by name.

```tsx title="webinar-time-zone.tsx"
"use client";

import { useState } from "react";

import {
  TimeZoneSelect,
  TimeZoneSelectContent,
  TimeZoneSelectDescription,
  TimeZoneSelectEmpty,
  TimeZoneSelectInput,
  TimeZoneSelectLabel,
  TimeZoneSelectTrigger,
} from "@/components/ui/time-zone-select";

export function WebinarTimeZone() {
  const [zone, setZone] = useState<string | null>("Europe/Lisbon");
  return (
    <TimeZoneSelect value={zone} onValueChange={setZone}>
      <TimeZoneSelectLabel>Time zone</TimeZoneSelectLabel>
      <TimeZoneSelectTrigger placeholder="Select a time zone" />
      <TimeZoneSelectContent>
        <TimeZoneSelectInput />
        <TimeZoneSelectEmpty />
      </TimeZoneSelectContent>
      <TimeZoneSelectDescription>Guests see the time in their own zone.</TimeZoneSelectDescription>
    </TimeZoneSelect>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/time-zone-select
```

It adds 52 registry items: 49 files, 8485 lines, and the npm packages `@base-ui/react`, `@phosphor-icons/react`, `@tanstack/react-virtual`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Combobox](https://gelatinui.com/components/combobox.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Local Time](https://gelatinui.com/components/local-time.md)
- [Clock](https://gelatinui.com/components/clock.md)
- [Combobox](https://gelatinui.com/components/combobox.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Enter, Space, Down Arrow | Opens the list from the trigger. |
| Up Arrow, Down Arrow | Move the highlight in the list. |
| Enter | Picks the highlighted zone. |
| Escape | Closes the list. |

## Motion

| Part | Motion |
| --- | --- |
| Check | fade · the check of the picked zone fades in |
