# ExtensionPill

> Renders the shared yii-debug-ext-pill chip: a status LED, the extension name, and its state.

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

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

Renders the shared `yii-debug-ext-pill` chip: a status LED, the extension name, and its state.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`render()`](#method-render) static | Renders one extension pill. | `ExtensionPill` |

## Method details

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

```php
public static function render(string $label, string $state, bool $enabled, string $summary = ''): UIAwesome\Html\Phrasing\Span
```

Renders one extension pill.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$label` | `string` | Extension or module name shown in the pill. |
| `$state` | `string` | Short state text shown after the label (`on`, `off`, or a version). |
| `$enabled` | `bool` | Whether the extension is active, selecting the `is-on` / `is-off` modifier. |
| `$summary` | `string` | Screen-reader-only detail appended after the state, or `''` to omit it. |

**Returns**

[`UIAwesome\Html\Phrasing\Span`](/docs/extensions/html/reference/phrasing/span/index.md): Extension pill element.