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.

Chip

Chip represents entities using icons, labels and images.

Basic
Action
Comedy
Mystery
Thriller
Icon
Apple
Facebook
Google
Microsoft
Image
Amy Elsner
Asiya Javayant
Onyama Limba
Xuxue Feng
Styling
Action
Apple
Onyama Limba
Xuxue Feng
Event
Action
Apple
Onyama Limba
Xuxue Feng

<style type="text/css">
    .ui-chip.custom-chip {
        background: var(--primary-color);
        color: var(--primary-color-text);
    }
</style>

<div class="card">
    <h:form>
        <p:growl id="messages" showDetail="true"/>

        <h5>Basic</h5>
        <div class="p-d-flex p-ai-center">
            <p:chip label="Action" styleClass="p-mr-2"/>
            <p:chip label="Comedy" styleClass="p-mr-2"/>
            <p:chip label="Mystery" styleClass="p-mr-2"/>
            <p:chip label="Thriller" removable="true"/>
        </div>

        <h5>Icon</h5>
        <div class="p-d-flex p-ai-center">
            <p:chip label="Apple" icon="pi pi-apple" styleClass="p-mr-2"/>
            <p:chip label="Facebook" icon="pi pi-facebook" styleClass="p-mr-2"/>
            <p:chip label="Google" icon="pi pi-google" styleClass="p-mr-2"/>
            <p:chip label="Microsoft" icon="pi pi-microsoft" removable="true"/>
        </div>

        <h5>Image</h5>
        <div class="p-d-flex p-ai-center">
            <p:chip label="Amy Elsner" image="../../resources/demo/images/avatar/amyelsner.png" styleClass="p-mr-2"/>
            <p:chip label="Asiya Javayant" image="../../resources/demo/images/avatar/asiyajavayant.png"
                    styleClass="p-mr-2"/>
            <p:chip label="Onyama Limba" image="../../resources/demo/images/avatar/onyamalimba.png"
                    styleClass="p-mr-2"/>
            <p:chip label="Xuxue Feng" image="../../resources/demo/images/avatar/xuxuefeng.png"
                    removable="true"/>
        </div>

        <h5>Styling</h5>
        <div class="p-d-flex p-ai-center">
            <p:chip label="Action" styleClass="p-mr-2 custom-chip"/>
            <p:chip label="Apple" icon="pi pi-apple" styleClass="p-mr-2 custom-chip"/>
            <p:chip label="Onyama Limba" image="../../resources/demo/images/avatar/onyamalimba.png"
                    styleClass="p-mr-2 custom-chip"/>
            <p:chip label="Xuxue Feng" image="../../resources/demo/images/avatar/xuxuefeng.png"
                    styleClass="custom-chip" removable="true"/>
        </div>

        <h5>Event</h5>
        <div class="p-d-flex p-ai-center">
            <p:chip label="Action" styleClass="p-mr-2">
                <p:ajax listener="#{chipView.onSelect}" update="messages"/>
            </p:chip>
            <p:chip label="Apple" icon="pi pi-apple" styleClass="p-mr-2" removable="true">
                <p:ajax listener="#{chipView.onSelect}" update="messages"/>
                <p:ajax event="close" listener="#{chipView.onClose}" update="messages"/>
            </p:chip>
            <p:chip label="Onyama Limba" image="../../resources/demo/images/avatar/onyamalimba.png"
                    styleClass="p-mr-2" removable="true">
                <p:ajax listener="#{chipView.onSelect}" update="messages"/>
                <p:ajax event="close" listener="#{chipView.onClose}" update="messages"/>
            </p:chip>
            <p:chip label="Xuxue Feng" image="../../resources/demo/images/avatar/xuxuefeng.png"
                    removable="true">
                <p:ajax listener="#{chipView.onSelect}" update="messages"/>
                <p:ajax event="close" listener="#{chipView.onClose}" update="messages"/>
            </p:chip>
        </div>

    </h:form>
</div>