Velocity X Components

Cards & Expandables

Card Grid Skeleton

The loading shape for a grid of cards — media block, title line, sub line, sized to match real card dimensions so the grid doesn't shift when data arrives. Ships media, list and stat variants; static (not faster) under reduced motion and hidden from screen readers.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add card-grid-skeleton

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Card Grid Skeleton →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.1 react
Card Grid Skeleton

Props

NameTypeRequiredDefaultDescription
countnumberNo1how many skeleton cards to render
variant'media' | 'list' | 'stat'No'media'shape to mimic
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/card-grid-skeleton/CardGridSkeleton.jsx

Using the Card Grid Skeleton component

Install it with velocityx add card-grid-skeleton. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Cards & Expandables.