DataRow

Label–value pair for displaying metrics. Supports units, deltas, and inline badges.

Preview

Usage

import { DataRow } from '@ramtt/ui'

<DataRow label="Power" value={285} unit="W" />
<DataRow label="Change" value="+12%" delta="+12%" deltaColor="positive" />

Props

PropTypeDefaultDescription
label*stringRow label text
value*string | numberPrimary value
unitstringUnit suffix (W, BPM, etc.)
deltastring | numberChange indicator
deltaColor'positive' | 'negative' | 'default''default'Delta color
badgeReactNodeInline badge element