Skip to content

Skeleton ​

bo-skeleton is a loading placeholder with text, circle, and rectangle shapes. It exposes role="status", aria-busy="true", and an accessible loading label by default.

Placeholder Content ​

<div class="grid gap-3"><bo-skeleton variant="text" width="12rem" height="1rem" /><bo-skeleton variant="rect" width="100%" height="5rem" /></div>

Shapes and Animation ​

Set animated="false" when a static placeholder is preferred. width and height accept any CSS size string.

<div class="flex items-center gap-4"><bo-skeleton variant="circle" width="3rem" height="3rem" /><bo-skeleton variant="rect" width="8rem" height="3rem" animated="false" /></div>

API Reference ​

PropTypeDefaultDescription
id / dataTestIdstringAutogeneratedElement id and test id.
variant'text' | 'circle' | 'rect'rectPlaceholder shape.
width / heightstring-CSS dimensions.
animatedbooleantrueEnables the pulse animation.
ariaLabelstringLoading...Accessible loading label.
roleHTMLAttributes['role']statusElement role.

Released under the MIT License.