Skip to main content

Examples

Default

Card Skeleton

Wrapping Children

All Variants

Radius

Props

Skeleton

A placeholder preview of content before data is loaded, reducing perceived load time. Mirrors common MUI Skeleton props for easy migration. When used as a loading state, wrap the skeleton region with aria-busy="true" and provide an accessible label so screen readers can convey the loading state.
SkeletonAnimation
default:"pulse"
Animation style. Set to false to disable animation.
string | number
Height of the skeleton. Accepts a CSS value (number is treated as px).
"md" | "sm" | "lg"
Corner radius on the kit scale, so a skeleton can match the corners of the surface it stands in for. Overrides the radius the variant sets.
  • sm – --radius-sm (12px)
  • md – --radius-md (16px)
  • lg – --radius-lg (24px)
Leave unset to keep the variant’s own radius.
"text" | "circular" | "rounded" | "rectangular"
default:"text"
Shape variant of the skeleton.
  • text – a single line of text with slight vertical margin and rounded ends
  • circular – a circle (width and height should match)
  • rectangular – a sharp-cornered rectangle
  • rounded – a rectangle with rounded corners
string | number
Width of the skeleton. Accepts a CSS value (number is treated as px).

Exported types

Also exported from @fanvue/ui: SkeletonAnimation, SkeletonProps, SkeletonRadius, SkeletonVariant.
Setup: Installation · Theming