Components/Skeleton
Since 1.0.0BETA

Skeleton

Loading placeholders and structure hints

This page was migrated by AI, please review carefully

Migration is complete, but please validate against source code and manual review.

Skeleton

Structural placeholders to reduce layout shift.
Status: Beta

Demo

Skeleton

Text and avatar placeholders

Demo will load when visible.
<template>
  <TxSkeleton :loading="true" :lines="3" />
  <TxSkeleton variant="circle" :width="40" :height="40" />
</template>

API (Lite)

PropertyTypeDefaultDescription
loadingShow skeleton
linesText lines
varianttextrectcircleShape variant
widthWidth; numbers are converted to px
heightHeight; numbers are converted to px
gapGap between multiple lines; numbers are converted to px

Interaction Contract

  • loading=false renders the default slot instead of the skeleton.
  • lines always renders at least one item, preventing empty skeleton output.
  • variant="circle" always uses a circular radius and ignores radius.

Composite Patterns

Card Placeholder

Skeletons inside cards for feeds.

Demo will load when visible.
<template>
  <TxCard>
    <TxSkeleton :loading="true" :lines="2" />
  </TxCard>
</template>