Skip to content

Feedback

Skeleton

Placeholder shimmer for loading content.

import { Skeleton } from '@var-ui/react';

Skeleton

Placeholder shimmer blocks while content loads. Size with style width/height; pick a shape that matches the eventual layout.

Examples

Default

A single text-shaped placeholder.

Demo.tsxTSX
import { Skeleton } from '@var-ui/react';

<Skeleton shape="text" style={{ width: '7.5rem', height: '1rem' }} />

Shapes

Mix text, rect, and circle to sketch a profile row or card while data loads.

Demo.tsxTSX
import { Skeleton } from '@var-ui/react';

<div style={{ display: 'flex', alignItems: 'center', gap: '0.75rem' }}>
  <Skeleton shape="circle" style={{ width: '2.5rem', height: '2.5rem' }} />
  <div style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem' }}>
    <Skeleton shape="text" style={{ width: '8.75rem', height: '0.875rem' }} />
    <Skeleton shape="rect" style={{ width: '12.5rem', height: '3rem' }} />
  </div>
</div>

Props

Accessibility

Skeleton is decorative (aria-hidden). Announce loading on a parent region with aria-busy / live text rather than on the shimmer itself.