Skip to content

Clock

Free

The current time in any time zone, as text that keeps itself up to date. A hover shows the full date and the zone.

  • React Aria
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Import Clock and compose its parts.

clock.tsx

Clock

<time>
PropTypeDefaultDescription
timeZonestring—The IANA zone ("Asia/Tokyo"). Default: the runtime zone. Summer time comes from the zone.
hourCycle1224—12 ("2:32 PM") or 24 ("14:32"), as the other time components take it. Default: the locale's cycle.
showSecondsbooleanfalseShow the seconds. false (default) wakes on each minute; true wakes each second.
timeZoneName"long""longGeneric""longOffset""short""shortGeneric""shortOffset"—A zone label after the time, in muted text (data-slot="clock-zone"): short ("CEST" in en-GB, "GMT+2" in en-US), shortOffset ("GMT+2"), long ("Central European Summer Time"). Default: no label.
dateStyle—A date part before the time, in muted text (data-slot="clock-date"): short-weekday ("Wed, Nov 4 14:32"), or an Intl style (short, medium, long, full). The date is the day in timeZone. Default: no date part.
showDayWordbooleanfalseWhen timeZone is on another day than the reader: "tomorrow" or "yesterday" after the time, in muted text (data-slot="clock-day"), from Intl.RelativeTimeFormat. It shows after hydration only (the server does not know the reader's zone), and not with dateStyle. Default false: a world clock row often puts the day in a lane of its own.
localestring—The BCP 47 language tag. Default: the DisplayLocaleProvider locale, else "en-US".
nownumber | Date—A fixed now for tests and stories. With it, no timer runs.
tooltipbooleantrueShow the full date and the long zone name in a Tooltip on hover. Default true.
...props<time> attributes—Every other attribute goes to the <time>, with a ref.
  • Use it for the time now in a zone, such as a city on a team page.
  • Use timeZoneName for a muted zone label, such as GMT+2.
  • Use showSeconds when the seconds matter. The default wakes once a minute.
  • Use dateStyle or showDayWord when the zone can be on another day.

Built with

Installs with Clock

Components
Full Value
  1. AddedClock, with Full Value.
Open the release