Free
Pro

Skeleton

Skeleton loaders provide a placeholder preview of content while data is being loaded. They reduce perceived wait time and improve the user experience during loading states. Use them as the @placeholder for deferred charts and tables — see the @defer cookbook.

free@defer

Playground

variant
3

HTML

<ply-skeleton variant="text" [count]="3">Skeleton</ply-skeleton>

Variants

Use variant to control the shape of the skeleton. Options are text, circular, rectangular, card, and table-row.

Text

Circular

Rectangular

Card

Table Row

Without animation

Set [animated]="false" to disable the pulse animation.

Installation

Run the following command to add this component to your project:

bash

npx ply-ui-cli add skeleton

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash

npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)

// Install: npx ply-ui-cli add skeleton
// Paths are relative to aliases.components (default: src/app/components)
import { SkeletonComponent } from './skeleton/skeleton.component';

@Component({
  selector: 'app-your-component',
  imports: [
    SkeletonComponent
  ],
  template: `...`
})
export class YourComponent {}

API for skeleton — generated from JSDoc in the library source.

API reference for skeleton
APIMemberTypeDefaultDescription
ply-skeletonclassstring''Additional host CSS classes (merged via cn()).
ply-skeletonvariantSkeletonVariant'text'
ply-skeletoncountnumber1
ply-skeletonwidthstring | undefinedundefined
ply-skeletonheightstring | undefinedundefined
ply-skeletonanimatedbooleantrue