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.

InputSwitch

InputSwitch is used to select a boolean value.

Basic
off
on
Remote
off
on

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

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

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