Sleep Chart
Life · SleepChart, Panel
A night as sleep stages over time, one lane per stage (awake, REM, light, deep), with the time asleep and the time per stage.
segmentsare{ stage, start, end }in order; times asDate, ISO string or timestamp.- The chart has one accessible description with every total;
summary={false}hides the totals.
Last night
Thu 12 → Fri 13 Nov
Awake
REM
Light
Deep
Asleep 7 h 22 min
- Awake33 min
- REM1 h 45 min
- Light3 h 52 min
- Deep1 h 45 min
Props
SleepChart
| Prop | Type | Notes |
|---|---|---|
segments | SleepSegment[] | The night in order, from falling asleep to getting up. |
label? | string | Accessible name (default "Sleep stages"). |
summary? | boolean | Hide the totals per stage under the chart. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Panel
| Prop | Type | Notes |
|---|---|---|
side? | boolean | |
title? | string | |
subtitle? | string | |
action? | ReactNode | |
children? | ReactNode | |
surface? | Surface | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |