Component packs › Gnomon › Sundial Time Picker

Sundial Time Picker

Drag the sun round a slate dial: the brass gnomon's shadow swings to the hour, and the sun you set lights every other Gnomon control on the page.

Sundial Time Picker is a time picker from Gnomon, a component pack with 6 shadow controls: One light for the whole page: switch on the lamp and every control swings its shadow away from it. Price: $2 for the whole pack.

Built with: sun sets the page light, engraved slate, gnomon shadow.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Sundial Time Picker props

PropTypeDefaultDescription
valuenumber870 (14:30)Minutes after midnight, 06:00 (360) to 18:00 (1080). Default 870 (14:30).
stepnumber15Minutes per step. Default 15.
labelstring
disabledboolean
darkboolean
drivesLightbooleantrueSet the page light to this sun when the time changes. Default true.
onChange(minutes: number, text: string) => void
autoplaynumber | falseShowcase mode: moves to a new time every N ms while visible.

Methods on the ref

Use it in React

import SundialPicker from './SundialPicker';

<SundialPicker />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Gnomon

Good for: Skeuomorphic UI.