Badge

A small status chip for a state or category, e.g. a deploy stage or a job status.

rendered, live
the wire — click a line to scrub
the contract — Badge in catalog.json
{
  "type": "object",
  "description": "A small status chip for a state or category, e.g. a deploy stage or a job status.",
  "properties": {
    "component": {
      "const": "Badge"
    },
    "text": {
      "$ref": "https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString",
      "description": "The chip's short text, e.g. 'Canary', 'Live', 'Degraded'. Required — it is the badge's accessible name. Keep it to a word or two."
    },
    "intent": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "good",
            "bad",
            "warning",
            "info",
            "neutral"
          ]
        },
        {
          "$ref": "https://a2ui.org/specification/v1_0/common_types.json#/$defs/DataBinding"
        },
        {
          "$ref": "https://a2ui.org/specification/v1_0/common_types.json#/$defs/FunctionCall"
        }
      ],
      "description": "Judgment of the status on the shared scale. Default: 'neutral'.",
      "default": "neutral"
    }
  },
  "required": [
    "component",
    "text"
  ]
}
the prompt-pack — paste into your agent
### Badge — a status chip

A word or two of state: a deploy stage, a job status, an environment.

| prop     | type         | required | notes                                       |
| -------- | ------------ | -------- | ------------------------------------------- |
| `text`   | string       | yes      | keep it short: `"Canary"`, `"Live"`         |
| `intent` | intent scale | no       | judgment of the status; default `"neutral"` |

```
{"id":"stage","component":"Badge","text":{"path":"/deploy/stage"},"intent":"warning"}
```