App UI kits › Pulse › Sleep

Sleep

Drag the moon and sun around a 24-hour dial; the arc, hours slept and the night sky all follow.

Sleep is a screen from Pulse, an app ui kit with 12 screens: A complete fitness app kit with a pulse in every screen. Price: $5 for the whole pack.

Built with: circular range dial, sky follows, stage chart draw.

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.

Sleep props

PropTypeDefaultDescription
bednumber23:00Bedtime in minutes after midnight. Default 23:00.
wakenumber07:00Wake time in minutes after midnight. Default 07:00.
autoplaybooleanShowcase mode: the handles drift by themselves.
onChange(bed: number, wake: number) => void

Methods on the ref

Use it in React

import PulseSleep from './PulseSleep';

<PulseSleep />

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

More in Pulse

Good for: Fitness app UI, Running app UI.