Skip to content

Skeleton 骨架屏

Feedback · Display component

Content loading skeletons.

On-demand importwbbb-ui/components/skeleton

Basic Usage

Example code
<script setup lang="ts">
import { WbbbSkeleton } from 'wbbb-ui/components/skeleton'
import 'wbbb-ui/styles/skeleton'
</script>

<template>
  <WbbbSkeleton />
</template>
Live mobile previewOpen in a new tab ↗

States and Interaction

All listed states can be operated and verified in the live Playground preview.

Default加载空态 / 失败Finished

API Reference

Props

PropertyDescriptionTypeDefaultRequired
animatedEnables the component transition animation.booleantrueNo
avatarSets the avatar image or avatar content source.booleanfalseNo
loadingShows a loading state and blocks repeated interaction when applicable.booleantrueNo
rowsSets the number of visible text rows.number3No
titleSets the component title text.booleantrueNo

Events

None

Slots

  • default

Two-way binding

Does not support v-model.

Platform Notes

Build verification: H5, App Vue, WeChat Mini Program, Alipay Mini Program, and Douyin Mini Program.

Runtime differences: H5 supports keyboard focus and reduced motion. Mini Programs provide equivalent touch interaction; verify upload, date selection, and overlays on target platforms.

Usage note: Use Playground to verify further state combinations and cross-platform behavior.

Wbbb UI · Built for uni-app product experiences