@gospore/skeleton
v1.0.10
Published
Skeleton renders decorative loading geometry that stands in for content while asynchronous data is loading. Use it directly for custom loading layouts, or use package-owned skeleton compositions such as `AvatarItemSkeleton` and `CommentSkeleton` when an e
Readme
@gospore/skeleton
Skeleton renders decorative loading geometry that stands in for content while asynchronous data is loading. Use it directly for custom loading layouts, or use package-owned skeleton compositions such as AvatarItemSkeleton and CommentSkeleton when an existing component has a matching loading shape.
Numeric dimensions are converted to non-negative pixel values. Negative and
non-finite numeric input is normalized to 0px; string dimensions such as
percentages, rem, and design-token variables pass through unchanged.
Accessibility
Skeleton shapes are decorative and render aria-hidden="true". Put aria-busy, role="status", or visible loading copy on the surrounding region when the loading state needs to be announced.
