Skip to content

Analog Clock

Pro

A live clock face for any time zone, drawn in one SVG. The hands step on a firm spring, and the clock stops while it is off screen.

  • Base UI
  • React Aria
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Analog Clock needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
22
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Import Analog Clock and compose its parts.

analog-clock.tsx

AnalogClock

<span>
PropTypeDefaultDescription
timeZonestring—The IANA zone ("Asia/Tokyo"). Default: the reader's zone.
showSecondsbooleanfalseDraw the second hand, which steps once a second. Default false: the hands step each minute.
marks"hours""none""quarters""hours"The marks: hours (default), quarters, or none. A face of 48px or less draws none.
diameternumber—The size in px. Default: 1em, so the face takes the font size around it.
nownumber | Date—A fixed now for tests and stories: the hands stand still.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Use it when a face reads faster than digits, such as a world clock list.
  • Use showSeconds for a second hand. Without it, the hands move once a minute.
  • Use marks to show every hour, the quarters, or no marks.
  • For the time as text, use a Clock.
  • For the time left until a moment, use a Countdown.
Hand step
clockTick · a stiff spring turns each hand one step
First paint
fade · the hands fade in after hydration
  1. AddedAnalog Clock.
Open the release