Products · Components

Badge

A small colored label that shows a status in a word.

Keep it to a word or two, like "Paid" or "Pending".

Children: Text, which can include Text, Link and Icon within a line

Example

The Badge component
view.dml
<View direction="row" gap="small">
  <Badge tone="success">Paid</Badge>
  <Badge tone="warning">Pending</Badge>
  <Badge tone="danger">Failed</Badge>
</View>

Props

PropTypeWhat it is
tonestatus toneDefault: default.

Events

None.

Keep reading

On this page