lara-light-indigo

Skeleton

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

Rectangle
Rounded
Square
Circle
Card
List
DataTable
Code
Name
Category
Quantity
Code
Name
Category
Quantity
Code
Name
Category
Quantity
Code
Name
Category
Quantity
Code
Name
Category
Quantity
Code
Name
Category
Quantity
Import via Module

import { Skeleton } from 'primereact/skeleton';
 
Import via CDN

<script src="https://unpkg.com/primereact/core/core.min.js"></script>
<script src="https://unpkg.com/primereact/skeleton/skeleton.min.js"></script>
 
Getting Started

Skeleton displays a rectangle in its simplest form.


<Skeleton />
 
Circle

The other option is the circle by setting shape property as "circle".


<Skeleton shape="circle" />
 
Size

In order to customize the size, use width and height properties for rectangles and size for Circle and Square shapes.


<Skeleton width="100%" height="2rem" />
<Skeleton shape="circle" size="50px" />
 
Border Radius

The default border radius of a rectangle is specified by the theme and can be overriden using the borderRadius property.


<Skeleton borderRadius="16px" />
 
Animation

Animation can be turned of by setting animation to "none".


<Skeleton animation="none" />
 
Properties

Any valid attribute is passed to the root element implicitly, extended properties are as follows;

NameTypeDefaultDescription
shapestringrectangleShape of the element, options are "rectangle" and "circle".
sizestringnullSize of the Circle or Square.
widthstring100%Width of the element.
heightstring1remHeight of the element.
borderRadiusstringnullBorder radius of the element, defaults to value from theme.
animationstringwaveType of the animation, valid options are "wave" and "none".
Styling

Following is the list of structural style classes, for theming classes visit theming page.

NameElement
p-skeletonContainer element.
p-skeleton-circleContainer element of a determinate progressbar.
p-skeleton-noneContainer element of an indeterminate progressbar.
Accessibility

This section is under development. After the necessary tests and improvements are made, it will be shared with the users as soon as possible.

Dependencies

None.

Component Scale

Input Style

Ripple Effect

Free Themes

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

Bootstrap
Blue
Purple
Blue
Purple
Material Design
Indigo
Deep Purple
Indigo
Deep Purple
Material Design Compact
Indigo
Deep Purple
Indigo
Deep Purple
Tailwind
Tailwind Light
Fluent UI
Blue
PrimeOne Design - 2022 NEW
Lara Indigo
Lara Blue
Lara Purple
Lara Teal
Lara Indigo
Lara Blue
Lara Purple
Lara Teal
PrimeOne Design - 2021
Saga Blue
Saga Green
Saga Orange
Saga Purple
Vela Blue
Vela Green
Vela Orange
Vela Purple
Arya Blue
Arya Green
Arya Orange
Arya Purple
Premium Themes

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

Soho Light
Soho Dark
Viva Light
Viva Dark
Mira
Nano

Legacy Free Themes

Nova
Nova Alt
Nova Accent
Luna Blue
Luna Green
Luna Amber
Luna Pink
Rhea

Premium Create-React-App Templates

Beautifully crafted premium create-react-app application templates by the PrimeTek design team.

Sakai
Atlantis
Freya
Ultima
Diamond
Sapphire
Serenity
Babylon
Avalon
Apollo
Roma