Reference · NPL
<npl-hormones>
NPL element
Each drive has a level from 0 to 100, drawn as a bar with an arrow showing whether it rose or fell. Notes explain what a bar means when it passes a set limit.
Children
-
<h>`<h>` (one per hormone, inside `panel`): `name` (`string`), `symbol` (`string`), `value` (`number`, range [-10, 10] — out-of-range values are clamped into range and the row is marked `data-clamped`, the raw text mirrored to `data-value`), `delta` (`number`; the sign drives the arrow: positive up `↑`, negative down `↓`, zero or absent flat `→`), `trigger` (`string`).
Example
Live render boots with JavaScript — the authored source is alongside.
variant: variant="bars"
The compact form — rows only, no state or triggered lines. Renderable: the element upgrades from the npl runtime, not the semtext bundle.
Live render boots with JavaScript — the authored source is alongside.
variant: variant="alert"
Alerts only — each authored alert renders as a threshold card; rows, state and triggered lines are omitted.
Live render boots with JavaScript — the authored source is alongside.
variant: out-of-range values
Values outside [-10, 10] clamp for display and the row is marked data-clamped (dotted underline on the readout); the authored text is mirrored verbatim to data-value. triggered="none" highlights no row.
Live render boots with JavaScript — the authored source is alongside.
Source: spec/schema/npl/npl-hormones.md