Locale

Language
English
English
English
French
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Czech
Greek
Persian
Finnish
Danish
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

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

Badge

Badge is a small status indicator for another element.

Numbers
284123
Positioned Badge
2
10+
Button Badge
8
8
Sizes
246
Hidden
Icon
99
99

<div class="card">
    <h:form>
     <h5 class="mt-0">Numbers</h5>
     <p:badge value="2" styleClass="mr-2"></p:badge>
     <p:badge value="8" severity="success" styleClass="mr-2"></p:badge>
     <p:badge value="4" severity="info" styleClass="mr-2"></p:badge>
     <p:badge value="12" severity="warning" styleClass="mr-2"></p:badge>
     <p:badge value="3" severity="danger" onclick="alert('danger clicked!')"></p:badge>

     <h5 class="mb-4">Positioned Badge</h5>
     <p:badge value="2">
         <i class="pi pi-bell" style="font-size: 2rem"/>
     </p:badge>
     <p:badge value="10+" severity="danger">
         <i class="pi pi-calendar ml-4" style="font-size: 2rem"/>
     </p:badge>
     <p:badge severity="danger">
         <i class="pi pi-envelope ml-4" style="font-size: 2rem"/>
     </p:badge>

     <h5>Button Badge</h5>
     <p:badge value="8">
         <p:commandButton value="Emails"/>
     </p:badge>
     <p:badge value="8" severity="danger">
         <p:commandButton value="Messages" icon="pi pi-users" styleClass="ml-4" />
     </p:badge>

     <h5>Sizes</h5>
     <p:badge value="2" styleClass="mr-2"></p:badge>
     <p:badge value="4" styleClass="mr-2" size="large" severity="warning"></p:badge>
     <p:badge value="6" size="xlarge" severity="success"></p:badge>

     <h5>Hidden</h5>
     <p:badge value="0" visible="false">
         <i class="pi pi-bell" style="font-size: 2rem"/>
     </p:badge>
     
     <h5>Icon</h5>
        <p:badge icon="pi pi-bell" severity="danger">
            <p:commandButton value="Alerts" />
        </p:badge>
        <p:badge icon="pi pi-envelope" severity="danger">
            <p:commandButton value="Emails" styleClass="ml-4"/>
        </p:badge>
        <p:badge icon="pi pi-plus" iconPos="left" value=" 99" severity="danger" >
            <p:commandButton value="Left Icon" styleClass="ml-4"/>
        </p:badge>
        <p:badge icon="pi pi-plus" iconPos="right" value="99 " severity="danger">
            <p:commandButton value="Right Icon" styleClass="ml-4"/>
        </p:badge>
    </h:form>
</div>