Blocks / Timezone picker

Timezone picker

A time zone found by typing, each row with its offset and the time there.

import { TimezonePicker, deviceTimezone, convertTime, timezoneOffset } from "@forgeron/ui";
/01 → Search
API → Props
PropTypeDefaultDescription
labelstring—Names the field.
value / defaultValuestring | null—An IANA zone, e.g. Europe/Paris. Controlled or not.
onChange(zone: string | null) => void—When a zone is chosen.
timezonesstring[]every zone the runtime knowsThe zones offered.
nownumberwhen it appearedUTC milliseconds the offsets and clocks are read at.
hour12 / clearable / disabledboolean—AM and PM, a button to remove the choice, read only.
classNamestring—Extra classes.