Skeleton pattern

Lines

Plain text placeholder rows

VPatternSkeletonlines pattern

<VPatternSkeleton />

Controls

The picker cannot show transparency. Type an rgba() value to keep it.

The picker cannot show transparency. Type an rgba() value to keep it.

Implementation

vue
<script setup lang="ts">
import { VPatternSkeleton } from "veload";
import "veload/style.css";
</script>

<template>
  <VPatternSkeleton />
</template>

Props

VPatternSkeleton props
PropTypeDefaultDescription
rowsnumber3Number of repeated text lines, list items, fields or data rows. Clamped to 1–12. Table and dashboard headers are separate; dashboard always includes one fixed header.
colorstring—Base colour of the placeholder blocks. Falls back to `--v-skeleton-base-color`.
highlightColorstring—Colour of the shimmer highlight. Falls back to `--v-skeleton-highlight-color`.
animatedbooleantrueEnables the shimmer animation. Reduced-motion preferences always disable it.
labelstring—Accessible name announced by the status region. Without a label the skeleton stays hidden from assistive technology.

About this pattern

  • The default lines pattern of VPatternSkeleton; no separate named export is needed.
  • Rows controls the exact number of text lines, from one to twelve.
  • The last line is shortened to suggest the end of a paragraph.