App UI kits › Swaddle › Sleep

Sleep

Asleep for how long on a soft ring, tonight’s wake-ups, and an awake-window hint that counts down to the next nap.

Sleep is a screen from Swaddle, an app ui kit with 11 screens: A baby tracker with a one-hand 3 a.m. mode, a feed timer that remembers the side, and a week of days drawn as rings. Price: $5 for the whole pack.

Built with: sleep ring, awake window, wake-ups.

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
darkboolean
autoplayboolean
photosZwPhotos
onChange(asleep: boolean) => void

Methods on the ref

Use it in React

import SwaddleSleep from './SwaddleSleep';

<SwaddleSleep />

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

More in Swaddle

Good for: Baby tracker app.