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

InputGroup

Text, icon, buttons and other content can be grouped next to an input by wrapping the addons and input inside .ui-inputgroup element. Multiple addons can be used within the same group as well.

Addons
$
.00
www
Multiple Addons
$
.00
Button Addons
Checkbox

<h:form>
    <div class="card">
        <h5>Addons</h5>
        <div class="grid ui-fluid">
            <div class="col-12 md:col-4">
                <div class="ui-inputgroup">
                    <div class="ui-inputgroup-addon"><i class="pi pi-user"></i></div>
                    <p:inputText placeholder="Username"/>
                </div>
            </div>
    
            <div class="col-12 md:col-4">
                <div class="ui-inputgroup">
                    <div class="ui-inputgroup-addon">$</div>
                    <p:inputText placeholder="Price"/>
                    <div class="ui-inputgroup-addon">.00</div>
                </div>
            </div>
    
            <div class="col-12 md:col-4">
                <div class="ui-inputgroup">
                    <div class="ui-inputgroup-addon">www</div>
                    <p:inputText placeholder="Website"/>
                </div>
            </div>
        </div>
    
        <h5>Multiple Addons</h5>
        <div class="grid ui-fluid">
            <div class="col-12">
                <div class="ui-inputgroup">
                    <div class="ui-inputgroup-addon"><i class="pi pi-tags"/></div>
                    <div class="ui-inputgroup-addon"><i class="pi pi-shopping-cart"/></div>
                    <p:inputText placeholder="Price"/>
                    <div class="ui-inputgroup-addon">$</div>
                    <div class="ui-inputgroup-addon">.00</div>
                </div>
            </div>
        </div>
    
        <h5>Button Addons</h5>
        <div class="grid ui-fluid">
            <div class="col-12 md:col-4">
                <div class="ui-inputgroup">
                    <p:commandButton value="Search"/>
                    <p:inputText placeholder="Keyword"/>
                </div>
            </div>
    
            <div class="col-12 md:col-4">
                <div class="ui-inputgroup">
                    <p:inputText placeholder="Keyboard"/>
                    <p:commandButton icon="pi pi-search" styleClass="ui-button-warning"/>
                </div>
            </div>
    
            <div class="col-12 md:col-4">
                <div class="ui-inputgroup">
                    <p:commandButton icon="pi pi-check" styleClass="ui-button-success"/>
                    <p:inputText placeholder="Vote"/>
                    <p:commandButton icon="pi pi-times" styleClass="ui-button-danger"/>
                </div>
            </div>
        </div>
    
        <h5>Checkbox</h5>
        <div class="grid ui-fluid">
            <div class="col-12 md:col-4">
                <div class="ui-inputgroup">
                    <div class="ui-inputgroup-addon"><p:selectBooleanCheckbox/></div>
                    <p:inputText placeholder="Username"/>
                </div>
            </div>
            <div class="col-12 md:col-4">
                <div class="ui-inputgroup">
                    <p:inputText placeholder="Username"/>
                    <div class="ui-inputgroup-addon"><p:radioButton for="radioDemo" itemIndex="0"/></div>
                </div>
            </div>
            <div class="col-12 md:col-4">
                <div class="ui-inputgroup">
                    <div class="ui-inputgroup-addon"><p:selectBooleanCheckbox/></div>
                    <p:inputText placeholder="Username"/>
                    <div class="ui-inputgroup-addon"><p:radioButton for="radioDemo" itemIndex="0"/></div>
                </div>
            </div>
        </div>

        <p:selectOneRadio id="radioDemo" layout="custom" unselectable="true">
            <f:selectItem itemValue="demo"/>
        </p:selectOneRadio>
    </div>
</h:form>