Badge
API reference › Debug Core › Helper › Badge
Renders the shared badge chip carrying a semantic tone.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
render() static | Renders one badge chip. | Badge |
Method details
Section titled “Method details”render()
Section titled “render() ”public static function render(string $label, PHPForge\Debug\Tone $tone, string $modifier = ''): UIAwesome\Html\Phrasing\SpanRenders one badge chip.
Parameters
| Parameter | Type | Description |
|---|---|---|
$label | string | Text shown inside the chip. |
$tone | PHPForge\ | Semantic tone selecting the chip hue. |
$modifier | string | Extra CSS classes appended after the tone class, or '' to add none. |
Returns
UIAwesome\Html\Phrasing\Span: Badge chip element.