Select
Timezone Clock Select
A timezone select: every option in the open panel, and the trigger itself, carry the city's live current time, ticking once a second.
What you can change
- the zones array (value, label, timeZone) and its copy
- the field caption through label
- the initial value through defaultValue
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/select-016?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
Client component: useState holds the selected zone, whether the panel is open, the highlighted index and the current time (null to begin with). useEffect starts an interval once a second and the first tick through setTimeout(0) rather than a synchronous call in the effect body — that avoids a cascading render right on mount. Until the first tick the field shows "--:--", so as not to diverge from the server rendering (Date is computed on the client only). The time is formatted with Intl.DateTimeFormat using the option's timeZone — a separate timezone per option, without date libraries. The trigger button and the role=listbox panel are arranged as in select-013/014: a native option cannot draw a second column with the clock. The palette lives in --vibeui-select-016-*.
Tags
- select
- timezone
- clock
- form
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…