Components / Surfaces
Skeleton
Displays a placeholder while content is loading.
<div style="display: flex; flex-direction: column; gap: 0.5rem; width: 100%; max-width: 20rem">
<div class="skeleton" style="height: 1rem; width: 60%"></div>
<div class="skeleton" style="height: 1rem; width: 100%"></div>
<div class="skeleton" style="height: 1rem; width: 80%"></div>
</div>Installation
pnpm dlx loseta add skeletonnpx loseta add skeletonAccessibility and behavior
- Set width and height inline or with your own layout classes.
Files
components/skeleton.cssbasestyles/nova/skeleton.cssstyleInstall contract
The CLI writes the base file under components/, the visual file for the selected style under styles/<name>/, and any primitive dependency underprimitives/. The generated index.css imports them in the right layer order.