Skip to content
loseta

Components / Surfaces

Skeleton

Displays a placeholder while content is loading.

Status stable
<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 skeleton
npx loseta add skeleton

Accessibility and behavior

  • Set width and height inline or with your own layout classes.

Files

components/skeleton.cssbase
styles/nova/skeleton.cssstyle

Install 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.

← Back to components

loseta is MIT licensed. Built with native CSS, no runtime. Inspired byshadcn/ui.