Angular Skeleton is a placeholder to display instead of the actual content.
Setup
Refer to PrimeNG setup documentation for download and installation steps for your environment.
Import
import {SkeletonModule} from 'primeng/skeleton';
Getting Started
Skeleton displays a rectangle in its simplest form.
<p-skeleton></p-skeleton>
Circle
The other option is the circle by setting shape property as "circle".
<p-skeleton shape="circle"></p-skeleton>
Size
In order to customize the size, use width and height properties for rectangles and size for Circle and Square shapes.
<p-skeleton width="100%" height="2rem"></p-skeleton>
<p-skeleton shape="circle" size="50px"></p-skeleton>
Border Radius
The default border radius of a rectangle is specified by the theme and can be overriden using the borderRadius property.
<p-skeleton borderRadius="16px"></p-skeleton>
Animation
Animation can be turned of by setting animation to "none".
<p-skeleton animation="none"></p-skeleton>
Theming
Skeleton supports various themes featuring Material, Bootstrap, Fluent as well as your own custom themes via the Designer tool.
Resources
Visit the PrimeNG Skeleton showcase for demos and documentation.