Skip to content

Skeleton

Pulsing placeholder shown while content is loading. Announces itself via aria-busy="true" and aria-label="Loading" — no props needed for accessibility, just size it to roughly match the content it stands in for.

<and-skeleton variant="circle" width="48px" height="48px"></and-skeleton>
<and-skeleton variant="text" width="220px"></and-skeleton>
<and-skeleton variant="text" width="160px"></and-skeleton>
PropertyAttributeDescriptionTypeDefault
customClassclassAdditional CSS classes from the consumer.string''
heightheightCSS height (e.g. 16px, 1rem).string'16px'
variantvariantVisual shape of the skeleton."circle" | "default" | "text"'default'
widthwidthCSS width (e.g. 100px, 100%).string'100%'