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.

free

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


HTML

Without animation

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


HTML

Installation

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

bash

npx base-ui-cli add skeleton

API Reference

For AI agents

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

bash

npx -y base-ui-mcp

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

typescript (Example)

// Install: npx base-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
base-skeletonclassstring''Additional host CSS classes (merged via cn()).
base-skeletonvariantSkeletonVariant'text'
base-skeletoncountnumber1
base-skeletonwidthstring | undefinedundefined
base-skeletonheightstring | undefinedundefined
base-skeletonanimatedbooleantrue