Live demo — this example is server-driven; run the showcase locally for the interactive version.

Icon

Use Icon 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.

Templates

icon

{#include components/icon /}
Icon — server-rendered inline SVG wrapped in PatternFly v6 icon chrome 
 Parameters: 
 name (required) —
"set:slug" where set is fa | fa-regular | fa-brands | pficon 
 size (optional) — sm | md | lg | xl | 2xl | 3xl |
body-sm | body-default | body-lg 
 | heading-sm | heading-md | heading-lg | heading-xl | heading-2xl | heading-3xl

 iconSize (optional) — same scale as `size`; sizes the glyph independently from its container 
 status
(optional) — info | success | warning | danger | custom 
 inline (optional) — boolean, flow with surrounding text 
 inProgress (optional) — boolean. Adds pf-m-in-progress on the wrapper AND renders a __progress overlay. 
 PF v6
CSS hides __content and shows __progress via opacity. 
 progressIcon (optional) — icon name rendered inside
__progress when inProgress=true. 
 Defaults to the PF v6 spinner component. 
 label (optional) — accessible
label. Applied to the visible SVG (or spinner). 
 Model mode: pass iconModel=<org.sitenetsoft.quarkus.pha.model.Icon> (param name avoids the ubiquitous icon= string args).