Skip to content

Time Zone Select

Free

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.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

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

webinar-time-zone.tsx

TimeZoneSelect

PropTypeDefaultDescription
timeZonesreadonly string[]—The zone ids to list. Default: Intl.supportedValuesOf("timeZone") (418 in Chrome and Node 22).
dateDate—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.
localTimeZonestring | 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.
labelsPartial<{ localGroup: string; }>—The words (TIME_ZONE_SELECT_LABELS). Keep the object stable.
getItemLabel—The text of a row, sorted and searched. Default: the city (zone.city).
getGroupLabel—The name of a region group ("Europe"). Default: the region; "Other" for ids with no area.
isItemDisabled—Rows that the user cannot pick. They stay in the list at 50%.
From Base UICombobox.RootBase UI docs
childrenReactNode—
namestring—Identifies the field when a form is submitted.
formstring—Identifies the form that owns the internal input. Useful when the combobox is rendered outside the form.

TimeZoneSelectTrigger

<button>
PropTypeDefaultDescription
classNamestring—
size"default""lg""sm""xs"—24, 28, 32, or 36px: the field sizes of controlVariants.
placeholderReactNode—The text while no zone is chosen ("Select a time zone"). Muted.
children—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).
From Base UICombobox.TriggerBase UI docs
disabledbooleanfalseWhether the component should ignore user interaction.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

TimeZoneSelectContent

<div>
PropTypeDefaultDescription
classNamestring—
arrowboolean—Show an arrow that points at the frame. The gap grows from 4px to 8px.
backdropboolean—Put a clear layer under the popup (Base UI Combobox.Backdrop).
portalProps—Other Base UI props of the inner parts. A className here adds to the component classes.
positionerProps—
backdropPropsPopupPartProps<ComboboxBackdropProps>—
arrowPropsPopupPartProps<ComboboxArrowProps>—
itemProps—Props of the row of each zone (TimeZoneSelectItem), and any data-* attribute.
From Base UICombobox.PopupBase UI docs
initialFocus—Determines the element to focus when the popup is opened. - false: Do not move focus. - true: Move focus based on the default behavior (first tabbable element or popup). - RefObject: Move focus to the ref element. - function: Called with the interaction type (mouse, touch, pen, or keyboard). Return an element to focus, true to use the default behavior, or false/undefined to do nothing.
finalFocus—Determines the element to focus when the popup is closed. - false: Do not move focus. - true: Move focus based on the default behavior (trigger or previously focused element). - RefObject: Move focus to the ref element. - function: Called with the interaction type (mouse, touch, pen, or keyboard). Return an element to focus, true to use the default behavior, or false/undefined to do nothing.
anchor—An element to position the popup against. By default, the popup will be positioned against the trigger.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TimeZoneSelectItem

<div>
PropTypeDefaultDescription
classNamestring—
valueRequiredstring—The zone id of the row.
From Base UICombobox.ItemBase UI docs
childrenReactNode—
onClick—An optional click handler for the item when selected. It fires when clicking the item with the pointer, as well as when pressing Enter with the keyboard if the item is highlighted when the Input or List element has focus.
indexnumber—The index of the item in the list. Improves performance when specified by avoiding the need to calculate the index automatically from the DOM.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TimeZoneSelectEmpty

<div>
PropTypeDefaultDescription
classNamestring—
children—The message. A function gets the query. Default: No time zone matches “{query}”.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • 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.
  • For a short list of a few options, use a Select.
  • To show a time in another zone, use Local Time.
EnterorSpaceorDown ArrowOpens the list from the trigger.
Up ArroworDown ArrowMove the highlight in the list.
EnterPicks the highlighted zone.
EscapeCloses the list.
Check
fade · the check of the picked zone fades in

Built with

Installs with Time Zone Select

Components
Combobox
  1. AddedTime Zone Select, with Combobox.
Open the release