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

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.

Skeleton

Skeleton is a placeholder to display instead of the actual content.

Rectangle
Rounded
Square
Circle
Card
List
DataTable
CodeNameCategoryQuantity

<style>
    .custom-skeleton {
        border: 1px solid var(--surface-d);
        border-radius: 4px;
    }
    .custom-skeleton>ul {
        list-style: none;
    }
</style>

<div class="card">
    <div class="p-grid p-formgrid">
        <div class="p-field p-col-12 p-md-6">
            <h5>Rectangle</h5>
            <p:skeleton class="p-mb-2"/>
            <p:skeleton width="10rem" class="p-mb-2"/>
            <p:skeleton width="5rem" class="p-mb-2"/>
            <p:skeleton height="2rem" class="p-mb-2"/>
            <p:skeleton width="10rem" height="4rem"/>
        </div>
        <div class="p-field p-col-12 p-md-6">
            <h5>Rounded</h5>
            <p:skeleton class="p-mb-2" borderRadius="16px"/>
            <p:skeleton width="10rem" class="p-mb-2" borderRadius="16px"/>
            <p:skeleton width="5rem" borderRadius="16px" class="p-mb-2"/>
            <p:skeleton height="2rem" class="p-mb-2" borderRadius="16px"/>
            <p:skeleton width="10rem" height="4rem" borderRadius="16px"/>
        </div>
        <div class="p-field p-col-12 p-md-6">
            <h5 class="p-mt-3">Square</h5>
            <div class="p-d-flex p-ai-end">
                <p:skeleton size="2rem" class="p-mr-2"/>
                <p:skeleton size="3rem" class="p-mr-2"/>
                <p:skeleton size="4rem" class="p-mr-2"/>
                <p:skeleton size="5rem"/>
            </div>
        </div>
        <div class="p-field p-col-12 p-md-6">
            <h5 class="p-mt-3">Circle</h5>
            <div class="p-d-flex p-ai-end">
                <p:skeleton shape="circle" size="2rem" class="p-mr-2"/>
                <p:skeleton shape="circle" size="3rem" class="p-mr-2"/>
                <p:skeleton shape="circle" size="4rem" class="p-mr-2"/>
                <p:skeleton shape="circle" size="5rem"/>
            </div>
        </div>
    </div>
</div>

<div class="card">
    <div class="p-grid p-formgrid">
        <div class="p-field p-col-12 p-md-6 p-pr-md-6 p-pr-0">
            <h5>Card</h5>
            <div class="custom-skeleton p-p-4">
                <div class="p-d-flex p-mb-3">
                    <p:skeleton shape="circle" size="4rem" class="p-mr-2"/>
                    <div>
                        <p:skeleton width="10rem" class="p-mb-2"/>
                        <p:skeleton width="5rem" class="p-mb-2"/>
                        <p:skeleton height=".5rem"/>
                    </div>
                </div>
                <p:skeleton width="100%" height="150px"/>
                <div class="p-d-flex p-jc-between p-mt-3">
                    <p:skeleton width="4rem" height="2rem"/>
                    <p:skeleton width="4rem" height="2rem"/>
                </div>
            </div>
        </div>

        <div class="p-field p-col-12 p-md-6">
            <h5>List</h5>
            <div class="custom-skeleton p-p-4">
                <ul class="p-m-0 p-p-0">
                    <li class="p-mb-3">
                        <div class="p-d-flex">
                            <p:skeleton shape="circle" size="4rem" class="p-mr-2"/>
                            <div style="flex: 1">
                                <p:skeleton width="100%" class="p-mb-2"/>
                                <p:skeleton width="75%"/>
                            </div>
                        </div>
                    </li>
                    <li class="p-mb-3">
                        <div class="p-d-flex">
                            <p:skeleton shape="circle" size="4rem" class="p-mr-2"/>
                            <div style="flex: 1">
                                <p:skeleton width="100%" class="p-mb-2"/>
                                <p:skeleton width="75%"/>
                            </div>
                        </div>
                    </li>
                    <li class="p-mb-3">
                        <div class="p-d-flex">
                            <p:skeleton shape="circle" size="4rem" class="p-mr-2"/>
                            <div style="flex: 1">
                                <p:skeleton width="100%" class="p-mb-2"/>
                                <p:skeleton width="75%"/>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="p-d-flex">
                            <p:skeleton shape="circle" size="4rem" class="p-mr-2"/>
                            <div style="flex: 1">
                                <p:skeleton width="100%" class="p-mb-2"/>
                                <p:skeleton width="75%"/>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>

        <h5>DataTable</h5>
        <p:dataTable var="product" value="#{skeletonView.products}">
            <p:column headerText="Code">
                <p:skeleton/>
            </p:column>
            <p:column headerText="Name">
                <p:skeleton/>
            </p:column>
            <p:column headerText="Category">
                <p:skeleton/>
            </p:column>
            <p:column headerText="Quantity">
                <p:skeleton/>
            </p:column>
        </p:dataTable>
    </div>
</div>