Table of Contents
Badge
Small count and labeling component.
Bootstrap docs: https://getbootstrap.com/docs/5.3/components/badge/

Syntax
$Bootstrap = new renderabootstrap5component();Returns: string
echo $Bootstrap->badge($aOptions)
Parameters: 1
| Parameter #0 [ <required> array $aOptions ] | array of options
Styling
|
Example
PHP snippet
$Bootstrap->badge([
'bgtype' => 'secondary',
'label' => 'New',
'title' => 'This is new',
]);
Generated html output
<span title="This is new" class="badge text-bg-secondary">
New
</span>