Live demo — this example is server-driven; run the showcase locally for the interactive version.
Badge
Use Badge straight from a Qute template — parameters and slots instead of Java builders. This reference is generated
from the runtime template sources: each template documents its parameters and slots in the header comment shown
beneath its include line.
Badge — PatternFly v6
Required: value
Optional: id — DOM id on the root; omit unless something else references the badge.
variant (read | unread | disabled) — default unread; screenReaderText — visually-hidden text appended for AT consumers
The disabled variant carries aria-disabled so AT announces it as inactive and contrast checkers exempt its (intentionally muted) PF colors.
Model mode: pass badge=<org.sitenetsoft.quarkus.pha.model.Badge> (built via Badge.of(value)).