Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

Skeleton

Open .md
Live preview

Loading example…

Skeleton is part of the States set, imported from @jcsoftdev/ui/states.

import { Skeleton } from "@jcsoftdev/ui/states";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/states/skeleton.

<Skeleton variant="lines" lines={3} rows={4} label="Cargando clientes" />
Prop Type Default Description
variant "table" | "list" | "card" | "bar" | "lines" | "kpis" | "key-value" "lines"
lines number 3 Number of lines for the lines variant.
rows number 4 Number of rows for the table variant.
count number 4 Number of items for the list, kpis and key-value variants. Defaults to 4, at most 12.
label string Text announced to screen readers while loading.
announce boolean Whether this skeleton is its own status region. Defaults to true, except inside a SkeletonGroup, which announces once. Set false on repeated skeletons so a screen reader does not say “Loading” for each; wrap them in a SkeletonGroup or a status of your…
className string Classes on the root. The bar variant is one block sized by them (h-8 w-32), 12px tall and full width otherwise.

* marks a required prop.

packages/ui/src/states/skeleton/skeleton.tsx