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

Switch

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

switch

{#include components/forms/switch /}
Switch — PatternFly v6 
 Model mode: pass sw=<org.sitenetsoft.quarkus.pha.model.Switch> — adds ariaLabel support for label-less switches. 
 Param mode: 
 Required: id — derives {id}-field on the input for label `for=` wiring. 
 Optional: label (optional), checked (optional), disabled (optional), reversed (optional), checkIcon (optional — the "label and check icon" variant; the label gets pf-m-on)