Last night's stages as a band you scrub, with the marks written.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add @notchset-pro/sleep-nightpnpm dlx shadcn@latest add @notchset-pro/sleep-nightNeeds your registry key. Every components.json style gets the same files.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { SleepNight, type Stretch } from "@/components/ui/notchset/blocks/sleep-night";
const PLAN: [Stretch["stage"], number][] = [["awake", 14], ["light", 22], ["deep", 38], ["light", 18], ["rem", 14], ["light", 26], ["deep", 55], ["light", 20], ["rem", 22], ["awake", 6], ["light", 34], ["deep", 24], ["rem", 28], ["light", 30], ["awake", 9], ["light", 28], ["rem", 36], ["light", 22], ["awake", 4]];
let t = 0;
const NIGHT: Stretch[] = PLAN.map(([stage, m]) => ({ stage, from: t, to: (t += m) }));
export default function SleepNightDemo() {
return (
<div className="max-w-[760px]">
<SleepNight bed="23:10" stretches={NIGHT} usual={{ asleep: "23:30", woke: "06:45", total: "6 h 50" }} />
</div>
);
}components/ui/notchset/blocks/sleep-night.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
bed–
stringbedtime, "23:10"; minutes count from here
stretches–
Stretch[]Required.
off[]
{ from: number; to: number }[]stretches with no data: the ring was off
usual–
{ asleep?: string | undefined; woke?: string | undefined; total?: string | undefined }your usual, for the written marks
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.0.0 · 2026-10-13
Released with the Notchset system.
The same file, at work in a finished app. Open it live and find it on its pages.
Pro is in early access.