Skip to content

zk-skeleton ​

A placeholder shown while the content loads.

Props ​

PropTypeDefaultDescription
variantstring'text'text, circle or rect: data-variant
countint1Number of placeholders, in a skeleton-group
widthstring|nullnullCSS width
heightstring|nullnullCSS height
animatedbooltrueAdds data-animated
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

It is hidden from assistive technology (aria-hidden); a group has aria-busy="true". The width and height are the only inline styles.

Examples ​

Lines ​

blade
<x-zk-skeleton :count="3" />

Picture ​

blade
<x-zk-skeleton variant="circle" width="3rem" height="3rem" />

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.