# swc-message-feedback

Binary positive / negative feedback control for AI responses. Arrow keys use `FocusgroupNavigationController` (horizontal) for roving focus between options.

## Attributes

| Name             | Type                                    | Default               | Description                                                                                                                                                                                       |
| ---------------- | --------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `status`         | `'positive' \| 'negative' \| undefined` | -                     | The currently selected feedback status. - `positive`: positive feedback selected - `negative`: negative feedback selected - `undefined`: no feedback selected This is controlled by the consumer. |
| `group-label`    | `string`                                | `'Response feedback'` | Accessible label for the feedback button group.                                                                                                                                                   |
| `positive-label` | `string`                                | `'Positive response'` | Accessible label for the positive feedback button.                                                                                                                                                |
| `negative-label` | `string`                                | `'Negative response'` | Accessible label for the negative feedback button.                                                                                                                                                |

## Events

| Name                          | Description                                                                                                      |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `swc-message-feedback-change` | Dispatched when the user toggles feedback selection. Detail: `{ status: 'positive' \| 'negative' \| undefined }` |
