# SummaryChip

> Builds the metric chips and separators composing the summary header of a debug grid.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [View](/docs/extensions/debug-core/reference/view/index.md) › [Grid](/docs/extensions/debug-core/reference/view/grid/index.md) › SummaryChip

| final class | `PHPForge\Debug\View\Grid\SummaryChip` |
| --- | --- |
| Source | [`src/View/Grid/SummaryChip.php`](https://github.com/php-forge/debug-core/blob/main/src/View/Grid/SummaryChip.php#L12) |

Builds the metric chips and separators composing the summary header of a debug grid.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`render()`](#method-render) static | Renders a summary chip with a strong value followed by its label. | `SummaryChip` |
| [`separator()`](#method-separator) static | Renders the separator between summary chips. | `SummaryChip` |

## Method details

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

```php
public static function render(string $value, string $label): UIAwesome\Html\Phrasing\Span
```

Renders a summary chip with a strong value followed by its label.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string` | Metric highlighted at the start of the chip. |
| `$label` | `string` | Unit the metric is expressed in, including the space separating it from the value. |

**Returns**

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

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

```php
public static function separator(): UIAwesome\Html\Phrasing\Span
```

Renders the separator between summary chips.

**Returns**

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