DriverModel
The inputs a forecast is built from, and what they produce.
npx shadcn add @lopifi/driver-modelExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Editable projection
Projected inputs take =1200+340 or 1.2k, and the ƒ rows follow in the same frame.
How it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
A forecast's inputs and the outputs they produce, in one grid with the boundary between them visible. It keeps three things apart: actual from projection, input from output, and assumption from arithmetic.
Inputs are typed; outputs carry the ƒ mark and their formula. If you can't tell which is which, nobody can find the assumption that moved the answer.
Only projected inputs are editable. An actual is what the ledger posted, and a model that lets you type over it will eventually explain a month that never happened.
Named assumptions sit under the grid in words ("new logos hold at 14 a month"), because that's the sentence someone can disagree with, and disagreement is the point of a forecast review. A growth rate buried three rows into a projected column isn't.
API change: ModelDriver.polarity is now required, no default — computed outputs included (it previously fell back to standard).
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Metrics & analysis
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section DriverModel renders in, the calculators behind its figures, and the ledger payloads that feed it.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Metrics & analysis changes
Your copy doesn’t update itself when we fix something here.
- One email when a Metrics & analysis component needs a migration
- Nothing when nothing changes
Or install it now