Badge
Dynamic Unread Counter
Demonstrates dynamic callable evaluation at render time instead of import time.
Preview
{% badge
<function
<lambda>
at
0x7d7f36bc0c20>
%}
Parameters
| Name | Type | Requirement | Default | Choices | Description |
|---|---|---|---|---|---|
text
|
str
|
Required | — | — | The badge text. |
Select variant preset
Background colour
Viewport width
Zoom level
{% badge "New" %}
<span class='badge '>Pending Tasks (42)</span>