Examples
Default
Card Skeleton
Wrapping Children
All Variants
Avatar With Text
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 witharia-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)."text" | "circular" | "rounded" | "rectangular"
default:"text"
Shape variant of the skeleton.
text– a single line of text with slight vertical margin and rounded endscircular– a circle (width and height should match)rectangular– a sharp-cornered rectanglerounded– 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, SkeletonVariant.
Setup: Installation · Theming