Skip to content
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 Highnormal 60–100 · 08:10
  • Blood pressure118/76 mmHg08:10
  • Oxygen97 % Normalnormal 95–100 · 08:10
  • Temperature36.8 °C Normalnormal 36.1–37.2 · 07:45
  • Breathing11 /min Lownormal 12–20 · 08:10
  • vitals is a list of readings. Each reading has an id, a label, and a value. It can also have a unit, a normal range as [low, high], and a time.
  • 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.
  • locale sets the format of the numbers. Change the words with labels or a label pack: title, low, high, normal, and range (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

NameTypeDefaultDescription
vitals*BlessVital[]—
localestring"en"
labelsPartial<{ title: string; low: string; high: string; normal: string; range: (low: string, high: string) => string; }>—

Released under the MIT License. Character names and artwork belong to their owners.