dtkt.protoui.v1beta1protoui.proto

Badge

Message

Render 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"

FieldTypeNumberDescription
contentstring1

CEL expression that evaluates to a string for the badge text. Context: this is the message or field being rendered. If not specified, uses the field value directly.

colorstring2

Color name from the UI theme (e.g., "red", "blue", "green", "zinc"). Defaults to "zinc" if not specified.