Data

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.

PropValues and behaviorDefault
valuenumber—
isPositiveGoodbooleantrue
valueFormat(value: number) => string—
variantsoft, solid, outlinesoft