Skeleton
Placeholders for content that hasn't loaded, breathing slowly. They take the sizes the layout sets before the data, so the content lands in the same rows, and never flash for a fast request.
Examples
List
Until the members arrive, rows of placeholders stand in at a row’s height: the avatar’s shape, a line for the name and one for the email, each as wide as a typical one, and the badge’s shape.
Values
What is known before the data, such as the Total label, stays on the page; only the values wait, each line at its text’s height, so the order lands without moving.
Timing
The placeholder shows once loading has lasted 200ms, then stays at least 300ms, so a fast request never flashes it. One that mounts loading shows at once.
Installation
npx shadcn@latest add https://kinoui.com/r/skeleton.json- Files
lib/reduce-motion.tslib/placeholder.tslib/resize.tscomponents/kino/spinner.tsxcomponents/kino/skeleton.tsx- Packages
@base-ui/react- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
Skeleton
SkeletonText
SkeletonContent
Data attributes
Accessibility
- Skeletons are hidden from screen readers, and so is the placeholder.
SkeletonContentisaria-busywhile it loads. - A skeleton announces nothing. Say what is loading, and what arrived, in a
role='status'region that is on the page before the result. - It breathes on opacity alone, so it keeps breathing when the system asks for less motion. In forced colours it is drawn in the system’s grey.