Medication List
Life · MedicationList, Panel
Today's doses in order, each with its time, name, dose, a status in words and a "taken" button.
statusis set by the app, which knows the clock:taken,due,missedorupcoming.onTake(id)adds a button named "Mark Ramipril as taken" to doses that are due or missed.
Today
4 doses · 1 taken
- 07:30Vitamin D1,000 IUTaken
- 08:00Metformin500 mg · With breakfastMissed
- 13:00Ramipril5 mgDue
- 22:00Magnesium300 mg · Before bedLater
Props
MedicationList
| Prop | Type | Notes |
|---|---|---|
items | MedicationItem[] | Required |
onTake? | (id: string) => void | "Mark as taken" was pressed. |
label? | string | Accessible name (default "Medication"). |
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. |