<kern-skeleton>
Placeholder in the shape of content that is still loading, so the layout does not jump. text draws lines (the last one shorter), block a rectangle (cards, stats, charts), circle an avatar or status dot. Hidden from assistive technology; mark the loading container with aria-busy="true" instead.
Examples
Placeholders while loading
text draws lines lines (the last one shorter), block a rectangle with width and height, circle a dot of size. Skeletons are hidden from assistive technology; mark the loading container with aria-busy="true" instead.
Replacing with content
Keep the skeleton the same size as the content it stands for, then swap it once the data has arrived, so the layout does not jump.
Properties
heightstring | undefined
Height of a block, e.g. 80px.
linesnumber
Number of lines (text).
sizestring
Diameter of a circle, e.g. 32px.
variant"block" | "circle" | "text"
widthstring | undefined
Width, e.g. 120px or 60% (text and block; default 100%).