Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

Saga Saga
Vela Vela
Arya Arya

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.

ToggleSwitch

ToggleSwitch is used to select a boolean value.

Basic
Remote

<div class="card">
    <h:form>
        <p:growl id="msg"/>

        <h5 class="p-mt-0">Basic</h5>
        <p:toggleSwitch value="#{selectBooleanView.value1}"/>

        <h5>Remote</h5>
        <p:toggleSwitch value="#{selectBooleanView.value2}">
            <p:ajax listener="#{selectBooleanView.addMessage}" update="msg"/>
        </p:toggleSwitch>
    </h:form>
</div>