Locale

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

Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

PrimeOne Design

Saga Saga
Vela Vela
Arya Arya

Premium Themes

Premium themes are only available exclusively for PrimeFaces Theme Designer subscribers and therefore not included in PrimeFaces core.

bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple

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.

Ribbon

Ribbon is container component to group different sets of controls in a tabbed layout. Special styling is applied to inner components for a unified look.

  • Options
  • Clipboard
  • b
    u
    i
    Fonts
  • Zoom

<style type="text/css">
    .ui-ribbon .ui-colorpicker .ui-button {
        height: 24px;
    }

    .ui-icon.ui-ribbonicon-new {
        margin-left: -10px;
        margin-top: -20px;
        background-image: url("#{resource['demo/images/icon/new.png']}");
    }

    .ui-icon.ui-ribbonicon-save {
        background-image: url("#{resource['demo/images/icon/save.png']}");
    }

    .ui-icon.ui-ribbonicon-paste {
        background-image: url("#{resource['demo/images/icon/paste.png']}");
    }

    .ui-icon.ui-ribbonicon-cut {
        background-image: url("#{resource['demo/images/icon/cut.png']}");
    }

    .ui-icon.ui-ribbonicon-print {
        background-image: url("#{resource['demo/images/icon/print.png']}");
    }

    .ui-icon.ui-ribbonicon-zoomin {
        background-image: url("#{resource['demo/images/icon/zoomin.png']}");
    }

    .ui-icon.ui-ribbonicon-zoomout {
        background-image: url("#{resource['demo/images/icon/zoomout.png']}");
    }
</style>

<div class="card">
    <p:ribbon>
        <p:tab title="File">
            <p:ribbonGroup label="Options">
                <p:commandButton value="New" icon="ui-ribbonicon-new" styleClass="ui-ribbon-bigbutton"
                                 type="button"/>
                <p:commandButton value="Save" icon="ui-ribbonicon-save" styleClass="ui-ribbon-bigbutton"
                                 type="button"/>
            </p:ribbonGroup>

            <p:ribbonGroup label="Clipboard" style="width:150px">
                <p:commandButton value="Paste" icon="ui-ribbonicon-paste" styleClass="ui-ribbon-bigbutton"
                                 type="button"/>
                <p:commandButton value="Cut" icon="ui-ribbonicon-cut" style="width:72px" type="button"/>
                <p:commandButton value="Print" icon="ui-ribbonicon-print" style="width:72px" type="button"/>
            </p:ribbonGroup>

            <p:ribbonGroup label="Fonts" style="width:220px">
                <p:selectOneMenu appendTo="@this">
                    <f:selectItem itemLabel="Arial" itemValue="0"/>
                    <f:selectItem itemLabel="Comis Sans" itemValue="1"/>
                    <f:selectItem itemLabel="Helvetica" itemValue="2"/>
                    <f:selectItem itemLabel="Times New Roman" itemValue="3"/>
                    <f:selectItem itemLabel="Verdana" itemValue="4"/>
                </p:selectOneMenu>

                <p:selectOneMenu appendTo="@this">
                    <f:selectItem itemLabel="10" itemValue="10"/>
                    <f:selectItem itemLabel="12" itemValue="12"/>
                    <f:selectItem itemLabel="14" itemValue="14"/>
                    <f:selectItem itemLabel="18" itemValue="18"/>
                    <f:selectItem itemLabel="24" itemValue="24"/>
                    <f:selectItem itemLabel="36" itemValue="36"/>
                    <f:selectItem itemLabel="72" itemValue="72"/>
                </p:selectOneMenu>

                <p:selectManyButton>
                    <f:selectItem itemLabel="b" itemValue="b"/>
                    <f:selectItem itemLabel="u" itemValue="u"/>
                    <f:selectItem itemLabel="i" itemValue="i"/>
                </p:selectManyButton>

                <p:colorPicker/>
            </p:ribbonGroup>
        </p:tab>

        <p:tab title="View">
            <p:ribbonGroup label="Zoom">
                <p:commandButton value="In" icon="ui-ribbonicon-zoomin" styleClass="ui-ribbon-bigbutton"
                                 type="button"/>
                <p:commandButton value="Out" icon="ui-ribbonicon-zoomout" styleClass="ui-ribbon-bigbutton"
                                 type="button"/>
            </p:ribbonGroup>
        </p:tab>
    </p:ribbon>
</div>