Display

List Rows Skeleton

A list skeleton whose rows come alive in a wave: each row carries its own animation delay, so the shimmer travels top to bottom and the list reads as one object, not a pile of blinking bars.

  • skeleton
  • list
  • loading
  • display

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.

put this in the header: https://vibeui.ru/c/skeleton-003?lang=en

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

# Install and place "skeleton-003" (List Rows Skeleton) from VibeUI

## 1. Install first — do not skip, do not recreate
Run this exact command before writing any code:
npx shadcn@latest add https://vibeui.ru/r/skeleton-003.json

Registry item: https://vibeui.ru/r/skeleton-003.json
Installs to: components/vibeui/skeleton-003.tsx (the exact path follows this project's components.json aliases).
npm dependencies: none.
Registry dependencies: none.

Install it from the registry. Do not recreate it from the description,
do not substitute a similar component from another library, and do not
rewrite it to match the project's existing style.

## 2. What it is
A list skeleton whose rows come alive in a wave: each row carries its own animation delay, so the shimmer travels top to bottom and the list reads as one object, not a pile of blinking bars.

A list row skeleton: avatar, two text fields and a trailing chip, with the shimmer travelling top to bottom. Zero dependencies, one file, server rendered.

## 3. How to use it
import { Skeleton003 } from "@/components/vibeui/skeleton-003"

<Skeleton003 rows={5} label="List is loading" />

Read the installed file for the full prop list.

## 4. Where to place it
This is a small inline component. Put it exactly where the user asked,
inside the existing markup. Do not create a new page, section or
wrapper for it. If a similar control already sits in that spot,
replace it instead of adding a second one.

Placement: ___
(The user fills this line in. If it is still blank, ask where to put it
instead of guessing.)

## 5. Keep exactly as installed
- the local --vibeui-skeleton-003-* palette — do not swap it for your theme tokens
- the staggered row delay: without it the list blinks as a single blob
- the alternating bar widths — identical ones read as a table, not a list
- role="status" and aria-busy on the root, or the skeleton is silent to screen readers
- the prefers-reduced-motion rule that stops both the wave and the shimmer
- the list's own light surface: on a dark gallery the grey bars are invisible otherwise

## 6. You may change
- the row count through rows
- the screen-reader caption through label
- the row height and avatar size in CSS
- the wave delay step in the component code

## 7. Rules
- The row count should match the expected page size, otherwise the list jerks when data lands.
- The component caps at twenty rows: a longer wave looks like ripple noise.
- In a long list the last row lags noticeably — shrink the step as rows grows.
- Do not lift the CSS variables into globals.css: the component has to stay a single file.

## 8. Verify
- it renders with no console errors;
- it looks like the preview on the VibeUI page you copied this from;
- if it does not, you changed something listed in section 5 — put it back.

For developers

npx shadcn@latest add https://vibeui.ru/r/skeleton-003.json
https://vibeui.ru/r/skeleton-003.json

Компонент самодостаточен: один файл, без зависимостей, собственная палитра в локальных переменных --vibeui-skeleton-003-*. Серверный: хуков нет. Задержка передаётся строке инлайновой переменной --vibeui-skeleton-003-delay и подхватывается правилом animation-delay, поэтому число строк можно менять пропсом, не трогая CSS. Ширины текстовых полос чередуются через :nth-child: одинаковые прямоугольники читаются как таблица, а не как список людей. Аватар и полосы делят одно правило заливки, чтобы блик шёл по строке целиком. Корень помечен role="status" и aria-busy; при prefers-reduced-motion блик снимается, остаётся ровная заливка.

Component source

The same file your agent installs. Here in case you would rather copy it by hand.

import type { ComponentPropsWithoutRef, CSSProperties } from "react"

export type Skeleton003Props = ComponentPropsWithoutRef<"div"> & {
  rows?: number
  label?: string
}

// Идея компонента: заглушка списка, где строки оживают волной. Каждой строке
// задана своя animation-delay, поэтому блик идёт сверху вниз и список
// читается как один объект, а не как пачка одинаково мигающих полос.
// Ширины текстовых полос чередуются: одинаковые выглядят как таблица.
const STYLES = `
:where([data-vibeui-block="skeleton-003"]){
--vibeui-skeleton-003-bg:oklch(1 0 0);
--vibeui-skeleton-003-border:oklch(0.9 0.006 265);
--vibeui-skeleton-003-base:oklch(0.93 0.005 265);
--vibeui-skeleton-003-shine:oklch(0.97 0.003 265);
--vibeui-skeleton-003-delay:0s;
}
[data-vibeui-block="skeleton-003"]{
width:100%;max-width:24rem;box-sizing:border-box;padding:0.5rem;
background:var(--vibeui-skeleton-003-bg);
border:1px solid var(--vibeui-skeleton-003-border);border-radius:1rem;
}
[data-vibeui-block="skeleton-003"] ul{margin:0;padding:0;list-style:none}
[data-vibeui-block="skeleton-003"] li{
display:flex;align-items:center;gap:0.75rem;
padding:0.625rem 0.625rem;
}
[data-vibeui-block="skeleton-003"] li + li{border-top:1px solid var(--vibeui-skeleton-003-border)}
[data-vibeui-block="skeleton-003"] [data-part="avatar"],
[data-vibeui-block="skeleton-003"] [data-part="bar"]{
background:linear-gradient(90deg,
var(--vibeui-skeleton-003-base) 0%,
var(--vibeui-skeleton-003-shine) 50%,
var(--vibeui-skeleton-003-base) 100%) 0 0 / 200% 100%;
/* Волна: задержка своя у каждой строки, поэтому блик идёт сверху вниз. */
animation:vibeui-skeleton-003-sweep 1.5s ease-in-out infinite;
animation-delay:var(--vibeui-skeleton-003-delay);
}
[data-vibeui-block="skeleton-003"] [data-part="avatar"]{
flex:none;width:2.25rem;height:2.25rem;border-radius:9999px;
}
[data-vibeui-block="skeleton-003"] [data-part="text"]{
display:flex;flex-direction:column;gap:0.4375rem;flex:1 1 auto;min-width:0;
}
[data-vibeui-block="skeleton-003"] [data-part="bar"]{height:0.6875rem;border-radius:0.25rem}
[data-vibeui-block="skeleton-003"] [data-part="bar"][data-size="name"]{width:42%;height:0.8125rem}
[data-vibeui-block="skeleton-003"] li:nth-child(even) [data-part="bar"][data-size="name"]{width:58%}
[data-vibeui-block="skeleton-003"] [data-part="bar"][data-size="meta"]{width:78%}
[data-vibeui-block="skeleton-003"] li:nth-child(3n) [data-part="bar"][data-size="meta"]{width:62%}
[data-vibeui-block="skeleton-003"] [data-part="bar"][data-size="tail"]{
flex:none;width:2.75rem;height:0.75rem;
}
@keyframes vibeui-skeleton-003-sweep{
0%{background-position:120% 0}
100%{background-position:-20% 0}
}
@media (prefers-reduced-motion:reduce){
[data-vibeui-block="skeleton-003"] *{animation:none!important;transition:none!important}
[data-vibeui-block="skeleton-003"] [data-part="avatar"],
[data-vibeui-block="skeleton-003"] [data-part="bar"]{background:var(--vibeui-skeleton-003-base)}
}
`

/**
 * Заглушка списка строк: блик идёт волной сверху вниз.
 * Один файл, ноль зависимостей, собственная палитра.
 */
export function Skeleton003({
  rows = 5,
  label = "Список загружается",
  className,
  style,
  ...props
}: Skeleton003Props) {
  const count = Math.min(20, Math.max(1, rows))

  return (
    <>
      <style href="vibeui-skeleton-003" precedence="medium">
        {STYLES}
      </style>
      <div
        {...props}
        data-vibeui-block="skeleton-003"
        role="status"
        aria-busy="true"
        aria-label={label}
        className={className}
        style={style as CSSProperties}
      >
        <ul>
          {Array.from({ length: count }, (_, index) => (
            <li
              key={index}
              style={
                {
                  "--vibeui-skeleton-003-delay": `${index * 0.09}s`,
                } as CSSProperties
              }
            >
              <span data-part="avatar" />
              <span data-part="text">
                <span data-part="bar" data-size="name" />
                <span data-part="bar" data-size="meta" />
              </span>
              <span data-part="bar" data-size="tail" />
            </li>
          ))}
        </ul>
      </div>
    </>
  )
}