@redrob-labs/ui v1.8.0 · Redrob Group Design System 2026

Delta

Insights · src/components/Delta/Delta.tsx

A signed change with an arrow, coloured by whether it moved the good way: "+3 pts" beside a figure in a table or a tile.

The arrow carries the direction as well as the colour. A move the bad way is the warning colour, not danger: a figure falling is a reason to look, not a failure. A change that rounds to zero is flat, and a missing one renders nothing rather than "+0".

Import

import { Delta } from '@redrob-labs/ui';

Rendered

No rendering: the delivery ships no preview case for this one

Props

PropTypeNotes
value number | null The change. Rounded to a whole number before it is shown or judged.
up boolean | null Whether up is good. false for figures like rework; null when neither direction is better.
suffix string Unit after the number: " pts", "%", " h". Nothing by default.
suffixOne string A unit for exactly one, e.g. " pt" beside " pts".
className string