A change with an arrow, coloured by whether it is good or bad.
import { Delta } from '@oztix/roadie-components/delta'
Delta beside a value or in a sentence. In a tile, pass delta to StatTile or DataCard, and in a DataTable, give the column kind: 'delta'. Both render one for you.value is the change itself, and the arrow shows its sign. Pass baseline when the number to show is a level, such as a pace index of 112 against 100.goodWhen='down' for numbers where falling is good, such as refunds, and goodWhen='neither' when a change has no better direction. Neither colours it grey.context or nearby text. The delta stays short.context is added to the end, such as "down 4%, worse, on last week".NaN, shows and reads as "Not available" rather than a number.Defaults to number.
Defaults to up.
Show `value` itself and read direction from `value - baseline` (pace index 112 vs 100).
Spoken suffix, e.g. "on last week".