Locale

Change the locale of the datepicker, schedule and client side validation messages.

Language
English
English
English
French
German
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
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Themes

PrimeOne
Saga Saga
Vela Vela
Arya Arya
Bootstrap
bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple
Material Design
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple
Material Design Compact
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple

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>