dtkt.protoui.v1beta1protoui.protoBadge
MessageRender as a badge with optional color.
Maps to Badge in @dtkt/ui/badge
Use CEL expressions to generate badge text.
The message or field is available as this in the expression context.
Example: this.status or string(this.count) + " items" or this.is_active ? "Active" : "Inactive"
| Field | Type | Number | Description |
|---|---|---|---|
| content | string | 1 | CEL expression that evaluates to a string for the badge text.
Context: |
| color | string | 2 | Color name from the UI theme (e.g., "red", "blue", "green", "zinc"). Defaults to "zinc" if not specified. |