Esc
Documentation
On this page

Props

PropTypeDefaultDescription
label requiredstring | FieldReferenceNoneBadge text
toneBadgeTone | FieldReference"info"Color tone
dotbooleanfalseShow a colored dot

Example

ts
Badge({ label: "Healthy", tone: "healthy", dot: true })
Badge({ label: row.status })

Supporting types

BadgeTone
export type BadgeTone =
  | "healthy"
  | "warning"
  | "unavailable"
  | "info"
  | "muted";

View the source on GitHub