Products · Components

DetailRow

A label and its value on one line, such as a line of a receipt.

Long values wrap and stay on the right.

Children: Nothing

Example

The DetailRow component
view.dml
<View variant="card" gap="none">
  <DetailRow label="Reference" value="AC-2041" />
  <DetailRow label="Status" value="Paid" tone="success" />
  <DetailRow label="Total" value="SLE 120.00" weight="bold" />
</View>

Props

PropTypeWhat it is
labelstring
valuestring
tonetoneThe value's tone and weight. The label is always muted.
weightregular, medium, boldDefault: regular.
padding, paddingTop, paddingStart, paddingEnd, paddingBottomspacingSpace inside its edges, all round or on one side.

Events

None.

Keep reading

On this page