Calm motion: animations on this site only fade, with no movement
Vitals panel
Heart rate, blood pressure, and other readings with the normal range
Shows the latest body readings in a health or clinic app. The app gives the normal ranges. The component does not give medical advice.
Basic
- Heart rate112 bpm High
- Blood pressure118/76 mmHg
- Oxygen97 % Normal
- Temperature36.8 °C Normal
- Breathing11 /min Low
vitalsis a list of readings. Each reading has anid, alabel, and avalue. It can also have aunit, anormalrange as[low, high], and atime.- The value is a number or text. Use text for a value such as blood pressure, "118/76".
- A number with a range shows "▲ High", "▼ Low", or "✓ Normal". A reading out of range also has a thick red edge, but the mark and the word carry the meaning.
- A bar shows where the value falls. The green band is the normal range. The bar is only for the eye, because the text says the same.
localesets the format of the numbers. Change the words withlabelsor a label pack:title,low,high,normal, andrange(a function).
The vitalState function gives the state of a reading. It is exported for your own views.
Usage
ts
import { BlessVitalsPanel } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
vitals* | BlessVital[] | — | |
locale | string | "en" | |
labels | Partial<{ title: string; low: string; high: string; normal: string; range: (low: string, high: string) => string; }> | — |