# EmptyState

> Renders the contextual empty-state card shown when a panel captured no data for the request.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Helper](/docs/extensions/debug-core/reference/helper/index.md) › EmptyState

| final class | `PHPForge\Debug\Helper\EmptyState` |
| --- | --- |
| Source | [`src/Helper/EmptyState.php`](https://github.com/php-forge/debug-core/blob/main/src/Helper/EmptyState.php#L15) |

Renders the contextual empty-state card shown when a panel captured no data for the request.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`card()`](#method-card) static | Renders the empty-state card: headline followed by the explanatory body elements. | `EmptyState` |

## Method details

### card() <span id="method-card"></span>

```php
public static function card(string $headline, string|Stringable ...$body): string
```

Renders the empty-state card: headline followed by the explanatory body elements.

Body values are trusted markup assembled by debug adapters; callers must encode untrusted data before passing it.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$headline` | `string` | Card headline describing the empty capture. |
| `...$body` | `string\|`[`Stringable`](https://www.php.net/manual/en/class.stringable.php) | Trusted explanatory body markup rendered after the headline. |

**Returns**

`string`: Empty-state card markup.