Design System
Summary PRAWN
Compact metric summary component with optimistic & pessimistic ranges
Summary PRAWN
PRAWN = Predictive, Real‑time, Automatic, Workflow Navigator. While the D3js PRAWN chart focuses on trends, the Summary PRAWN component distils the current state of a metric into a single, glanceable card – perfect for dashboard headers or sidebars.
It emphasises:
- Main value – the central metric the user cares about.
- High / Low estimates – optimistic and pessimistic bounds that set expectations.
- Narrative summary – short natural‑language insight explaining the change.
By explicitly showing the range and the narrative, users understand both what is happening and why – a key tenet of the Jobs‑to‑Be‑Done approach.
Example
Props
Name | Type | Default | Description |
---|---|---|---|
mainValue | string | number | '?' | Primary metric value |
mainLabel | string | 'Value' | Label under primary value |
mainUnit | string | 'x' | Unit displayed next to value |
highValue | string | number | '?' | Optimistic estimate |
lowValue | string | number | '?' | Pessimistic estimate |
summaryTitle | string | 'Daily Summary' | Heading for narrative text |
summaryText | string | 'No data yet' | Narrative description |
mainColor | string | '#16AA6B' | Colour of primary value & border |
tourSteps | TourStep[] | [] | Optional guided tour steps |
Tour integration
Just like the chart, the summary supports contextual onboarding: