Installation
npx shadcn@latest add @iconiq/timezoneProps
Timezone
Inline live clock that resolves friendly city names or IANA timezone strings, then animates digit changes with fluid spring rolls and pulsing separators.
zonestringRequired
format"12h" | "24h"Default "12h"
showAbbreviationbooleanDefault true
zoneName"abbreviation" | "offset"Default "abbreviation"
livebooleanDefault false
localestringDefault "en-US"
classNamestringCity aliases normalize spacing and casing, so values like `San fransico` still resolve to `America/Los_Angeles`.
All IANA timezones from the runtime environment are indexed automatically, including full paths like `Pacific/Kiritimati` and unique city slugs like `Africa/Abidjan`.
The clock uses `suppressHydrationWarning` and client-side ticking so SSR and hydration stay stable in Next.js apps.
Digit motion and zone transitions automatically disable when `prefers-reduced-motion: reduce` is enabled.
Digit rolls use transform and opacity only so Safari and other WebKit browsers avoid filter-blur compositing glitches.
The component renders a semantic `time` element with a machine-readable `dateTime` value in the target timezone.
By default the clock refreshes once per minute. Pass `live` for second-level updates in dashboards or hero copy.
Unknown zones render a compact destructive fallback label instead of throwing during render.
Registry bundle
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: motion.