# swc-response-status

Displays the current status of an AI response generation.

## Attributes

| Name               | Type                                           | Default    | Description                                                                                                                                                                                             |
| ------------------ | ---------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `status`           | `ResponseStatusStatus`                         | `'active'` | Whole response lifecycle status.                                                                                                                                                                        |
| `open`             | `boolean`                                      | `false`    | `true`: step timeline open.                                                                                                                                                                             |
| `accessible-label` | `string`                                       | `''`       | Accessible name for the step list panel.                                                                                                                                                                |
| `loader`           | `PixelLoaderIconName \| PixelLoaderPresetName` | `'mega'`   | Status loader artwork shown while `status="active"`, matching `swc-prompt-field`'s `loader` attribute for the same underlying control: a preset name (`cc`, `dc`, `exp`, `analyze`, `mega`) cycles a... |

## Slots

| Name        | Description                                                                                                                                                                  |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `label`     | Header row label. Falls back to the active step label while the step timeline is closed, or a generic "Processing…" label while it's open with at least one incomplete step. |
| `(default)` | `<swc-response-status-step>` elements.                                                                                                                                       |

## Events

| Name                              | Description                                                                                                    |
| --------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `type`                            |                                                                                                                |
| `swc-response-status-toggle`      | Dispatched when the user opens or closes the panel. Detail: `{ open: boolean }`                                |
| `swc-response-status-step-toggle` | Dispatched when the user expands or collapses a step's description. Detail: `{ open: boolean, index: number }` |

## CSS Custom Properties

| Name                                    | Description                                                                                |
| --------------------------------------- | ------------------------------------------------------------------------------------------ |
| `--swc-response-status-label-max-lines` | Maximum number of lines the settled header label wraps to before ellipsing. Defaults to 2. |
