el-skeleton

Display skeleton placeholders during asynchronous content loading in Vue components.

21|2|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-skeleton
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: el-skeleton
Source: https://github.com/jiaiyan/element-plus-skills/tree/main/components/el-skeleton
Command: npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-skeleton

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Skeleton placeholders reduce layout shift and improve perceived performance when data is loading.

Core Features & Use Cases

  • Basic Usage: Quickly render a skeleton placeholder while content is being fetched.
  • Configurable Rows & Animation: Control the number of skeleton rows and enable animation for a lively loading state.
  • Customized Template: Compose complex skeleton layouts using slots to mirror real content.
  • Loading State & Best Practices: Toggle loading to switch between placeholders and real content, and follow UX guidelines to avoid layout shifts.

Quick Start

Add the el-skeleton component to your template and toggle its loading state to display placeholders.

Frequently Asked Questions about el-skeleton

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I show skeleton placeholders in Vue during asynchronous content loading?

To show skeleton placeholders in Vue during asynchronous content loading, you can use a skeleton component with a loading prop that toggles between placeholder and real content. This reduces perceived wait times and prevents layout shift.

Can I customize skeleton layouts to mirror complex card or data table content?

Yes, you can customize skeleton layouts to mirror complex content by using template slots. This allows you to compose intricate placeholder structures for card layouts, image grids, and data tables that match your real content.

How do I configure skeleton loading rows and animations for a Vue UI component?

You can configure skeleton loading rows and animations for Vue UI components by adjusting the component properties to control the number of rows and enabling animated transitions for a lively loading state.

What is the best way to prevent layout shift while fetching data in a Vue application?

The best way to prevent layout shift while fetching data in a Vue application is implementing skeleton placeholders. They reserve space and mimic real content structure, improving perceived performance and user experience.

Does el-skeleton require any specific Vue dependencies or external components?

No, el-skeleton does not require any specific external dependencies or components. It operates independently to provide skeleton placeholders with configurable rows, timing, and slots for customized templates.