# Cash forecast — Detent

> Runway on a lit panel. Ask a what-if in plain words and the forecast bends away from the plan; switch to Range and the line becomes a swarm of likely futures, and the runway a range.

Canonical: https://detentui.com/components/forecast
Last updated: 2026-11-10

## About

Runway on a lit panel. Ask a what-if in plain words and the forecast bends away from the plan; switch to Range and the line becomes a swarm of likely futures, and the runway a range.

## Details

- The headline is months of runway; beside it, the month the cash runs out and how much sooner or later that is than the plan.
- The chart is the one sharp object: the past fades in from the edge, the forecast is printed in grain ink, and the month it runs out is a red deadline with the months after it hatched.
- Range draws forty possible futures that follow the forecast, a column of dots a month with the band eight in ten fall inside, and gives the runway and the out-of-cash month as a range.
- Type a what-if and the parts your model understands light up as you go. It says what it’s doing, can be stopped, and asks which one when a name matches two customers.
- What-ifs stack like a feed, the newest on top, each with what it alone does to the runway; point at the stack and it fans out so any can be switched off.
- Hold to adopt: the plan line comes down to meet the forecast and seats with a click. One size in every state, in both themes; look="plain" uses a flat fill.

## Keyboard shortcuts

| Keys | Action |
| --- | --- |
| Enter | Ask the what-if |
| Space | Hold to adopt |
| Esc | Back from a question |

## Install

```bash
npx shadcn add https://detentui.com/r/forecast
```

## Related
- [All components](https://detentui.com/components)
- [Pro](https://detentui.com/pro)
