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

Carousel

Carousel displays data using a slide effect.


<style>
    .product-item .product-item-content {
        border: 1px solid var(--surface-d);
        border-radius: 3px;
        margin: .3rem;
        text-align: center;
        padding: 2rem 0;
    }

    .product-item .product-image {
        width: 50%;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)
    }
</style>


<h:form id="form">

    <div class="card">
        <p:carousel value="#{carouselView.products}" var="product" numVisible="3" numScroll="3"
                    responsiveOptions="#{carouselView.responsiveOptions}">
            <f:facet name="header">
                <h5>Basic</h5>
            </f:facet>
            <div class="product-item">
                <div class="product-item-content">
                    <div class="mb-3">
                        <p:graphicImage name="demo/images/product/#{product.image}" styleClass="product-image"/>
                    </div>
                    <div>
                        <h4 class="mb-1">#{product.name}</h4>
                        <h6 class="mt-0 mb-3">
                            <h:outputText value="#{product.price}">
                                <f:convertNumber type="currency" pattern="¤#0" currencySymbol="$" />
                            </h:outputText>
                        </h6>
                        <span class="product-badge status-#{product.inventoryStatus.statusName}">#{product.inventoryStatus.text}</span>
                        <div class="mt-5">
                            <p:commandButton type="button" icon="pi pi-search" styleClass="rounded-button mr-2" />
                            <p:commandButton type="button" icon="pi pi-star" styleClass="ui-button-success rounded-button mr-2" />
                            <p:commandButton type="button" icon="pi pi-cog" styleClass="ui-button-help rounded-button" />
                        </div>
                    </div>
                </div>
            </div>
        </p:carousel>
    </div>

    <div class="card">
        <p:carousel value="#{carouselView.products}" var="product" circular="true" autoplayInterval="3000"
                    responsiveOptions="#{carouselView.responsiveOptions}" numVisible="3" numScroll="1">
            <f:facet name="header">
                <h5>Circular, AutoPlay, 3 Items per Page and Scroll by 1</h5>
            </f:facet>

            <div class="product-item">
                <div class="product-item-content">
                    <div class="mb-3">
                        <p:graphicImage name="demo/images/product/#{product.image}" styleClass="product-image"/>
                    </div>
                    <div>
                        <h4 class="mb-1">#{product.name}</h4>
                        <h6 class="mt-0 mb-3">
                            <h:outputText value="#{product.price}">
                                <f:convertNumber type="currency" pattern="¤#0" currencySymbol="$" />
                            </h:outputText>
                        </h6>
                        <span class="product-badge status-#{product.inventoryStatus.statusName}">#{product.inventoryStatus.text}</span>
                        <div class="mt-5">
                            <p:commandButton type="button" icon="pi pi-search" styleClass="rounded-button mr-2" />
                            <p:commandButton type="button" icon="pi pi-star" styleClass="ui-button-success rounded-button mr-2" />
                            <p:commandButton type="button" icon="pi pi-cog" styleClass="ui-button-help rounded-button" />
                        </div>
                    </div>
                </div>
            </div>
        </p:carousel>
    </div>

    <div class="card">
        <p:carousel value="#{carouselView.products}" var="product" orientation="vertical"
                    verticalViewPortHeight="352px" style="max-width: 400px;margin-top: 2em;">
            <f:facet name="header">
                <h5>Vertical</h5>
            </f:facet>
            <div class="product-item">
                <div class="product-item-content">
                    <div class="mb-3">
                        <p:graphicImage name="demo/images/product/#{product.image}" styleClass="product-image"/>
                    </div>
                    <div>
                        <h4 class="mb-1">#{product.name}</h4>
                        <h6 class="mt-0 mb-3">
                            <h:outputText value="#{product.price}">
                                <f:convertNumber type="currency" pattern="¤#0" currencySymbol="$" />
                            </h:outputText>
                        </h6>
                        <span class="product-badge status-#{product.inventoryStatus.statusName}">#{product.inventoryStatus.text}</span>
                        <div class="mt-5">
                            <p:commandButton type="button" icon="pi pi-search" styleClass="rounded-button mr-2" />
                            <p:commandButton type="button" icon="pi pi-star" styleClass="ui-button-success rounded-button mr-2" />
                            <p:commandButton type="button" icon="pi pi-cog" styleClass="ui-button-help rounded-button" />
                        </div>
                    </div>
                </div>
            </div>
        </p:carousel>
    </div>

    <div class="card">
        <p:carousel circular="true" paginator="false">
            <f:facet name="header">
                <h5>Tabs</h5>
            </f:facet>
            <p:tab>
                <p class="m-0 p-3">
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
                    dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                </p>
            </p:tab>
            <p:tab>
                <p class="m-0 p-3">
                    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab
                    illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut
                    odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
                </p>
            </p:tab>
            <p:tab>
                <p class="m-0 p-3">
                    At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores
                    et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
                    Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
                </p>
            </p:tab>
        </p:carousel>
    </div>
</h:form>