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

Alert

Use Alert 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

alert

{#include components/feedback/alert /}
Alert — PatternFly v6 
 Required: title 
 Optional: id — DOM id on the root; omit unless something else references the alert.
              variant — custom (default) | info | success | warning | danger.
              Drives pf-m-{variant} on the root, the auto-icon, the screen-reader
              prefix ("{variant} alert:"), and the close-button aria-label.
              Matches PF React's default of 'custom' when omitted.
              description, inline, plain, expandable, closable, truncate, customIcon.
              hasActionLinks — set true and fill the {#actionLinks} slot to render the action-link footer. 
 Slot: {#actionLinks} — PF's AlertActionLink area. Compose link-variant button components, e.g.
          {#actionLinks}{#include components/actions/button variant="link" inline=true href="#"}{#content}View{/content}{/include}{/actionLinks} 
 Model mode: pass alert=<org.sitenetsoft.quarkus.pha.model.Alert> (built via Alert.of(title))
   — mirrors the parameter surface incl. the action-link footer as data.