# StatusPill

A rounded status label with five tones. One place for status colors instead of one copy per screen.

**License needed:** Standard. No premium connector, no PCF, no environment setting.

## Properties

| Property | Type | Default | Notes |
|---|---|---|---|
| Label | Text | Approved | Text in the pill |
| Tone | Text | success | success, warning, error, info or neutral. Anything else renders neutral |

Width and Height are normal component properties (default 120 x 28). Corners and font size follow the height.

## Setup

1. Create a component named `StatusPill` and paste `src/StatusPill.pa.yaml`.
2. Insert the component and map your status to a tone, for example `Switch(ThisItem.Status, "Approved", "success", "Rejected", "error", "neutral")`.
3. See `demo/DemoStatusPill.pa.yaml` for all five tones.

## Limits

- Components cannot be placed inside a gallery. For lists, build the pill from a container and text, or place the component outside the gallery.
- Colors are fixed per tone. Edit the two `Switch` formulas in the YAML to change them.
