Positions a supplied numeric reading against caller-supplied reference bounds, with a complete text equivalent.
Preview
Example result4.2 units
Supplied reference interval3–5 units
In action
Read an interval
Report viewer / Example data
Reported measurement24 units
Interval supplied with this report20–30 units
One-sided reference8 units
Reference intervalUp to 10 units
The report supplies the units and bounds. These synthetic values demonstrate the display.
When to use
Use it for
Display numeric bounds supplied by the responsible laboratory or data source.
Pass valueLabel to format the reading and rangeLabel to identify the source of the interval.
One-sided intervals are textual; a marker requires two finite, ordered bounds.
Not for
Hard-coding a universal normal interval across patients, methods or units.
Using the marker to indicate a diagnosis, treatment decision or calculated clinical status.
Comparing a value and bounds expressed in different units.
Install
Three ways in. They share one source, so the pixels match whichever you pick.
1. Import the package
npm install @noorddev/vlak-react
// once, next to your app's root
import "@noorddev/vlak-react/css";
import { ReferenceRange } from "@noorddev/vlak-react";
Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/reference-range.
2. Vendor the source
npx @noorddev/vlak-cli add reference-range
The StyleX leaf lands in components/vlak/, for your own compiler to own. See StyleX.
A supplied numeric reference interval. Position describes arithmetic, never clinical status.
Prop
Type
Default
Description
labelrequired
string
value
number | null
minimum
number | null
Caller-supplied lower bound. Omit for an upper bound only.
maximum
number | null
Caller-supplied upper bound. Omit for a lower bound only.
unit
string
valueLabel
string
Display formatting for the supplied numeric value.
rangeLabel
string
"Reference interval"
Optional contextual label, such as the laboratory's reference interval.
Also accepts HTMLAttributes<HTMLDivElement>.
Accessibility
The reading, unit and reference interval are visible as text; decorative geometry is aria-hidden.
The reference band spans 20% to 80% of the track from the reading direction's start. Outlying markers clamp to the track and have a textual above or below description.
Missing, non-finite, equal and reversed bounds never produce an invalid marker position. Missing results are named explicitly.
A one-sided interval is rendered as at least or up to without inventing a second bound.
The marker remains visible in forced colors. There is no animation, interactive control or clinical classification.