BadgeDelta
Show a compact percentage change with a direction indicator and impact color.
Basic usage
Pass the signed percentage as a number. For costs, set isPositiveGood={false} so a decrease is shown as favorable.
Acquisition costdecrease: -8.2%
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
value | number | — |
isPositiveGood | boolean | true |
valueFormat | (value: number) => string | — |
variant | soft, solid, outline | soft |