Avatar
People Skeleton
A people-list skeleton: a circle for the avatar and name bars of differing lengths — equal ones would read as a table.
- avatar
- skeleton
- loading
- list
Preview
1440pxHost theme
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this in the header: https://vibeui.ru/c/avatar-008?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 "avatar-008" (People 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/avatar-008.json
Registry item: https://vibeui.ru/r/avatar-008.json
Installs to: components/vibeui/avatar-008.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 people-list skeleton: a circle for the avatar and name bars of differing lengths — equal ones would read as a table.
A skeleton for a list of people: circles for avatars and bars for names, with the shimmer staggered per row. Zero dependencies, one file, no client JS.
## 3. How to use it
import { Avatar008 } from "@/components/vibeui/avatar-008"
<Avatar008 count={3} label="Loading members" />
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-avatar-008-* palette — do not swap it for your theme tokens (bg-muted, animate-pulse and the like)
- the varying bar lengths: equal rectangles read as a table, not as names
- the staggered shimmer — a simultaneous flash reads as the screen blinking
- role="status" and aria-busy: without them loading does not exist for a screen reader
- matching the real row's metrics — otherwise the content jumps when it arrives
- the prefers-reduced-motion rule that stops the shimmer
## 6. You may change
- count — how many rows to show
- label — what is loading
- lines — circles only, without the bars
- the card width through max-width
## 7. Rules
- The row count should match what is coming: five placeholders before one person reads as a bug.
- Delays are written for four rows; add nth-child rules in your copy for more.
- A skeleton is not an explanation: past a couple of seconds show progress or a reason.
- 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/avatar-008.jsonhttps://vibeui.ru/r/avatar-008.jsonКомпонент самодостаточен: один файл, без зависимостей, собственная палитра в локальных переменных --vibeui-avatar-008-*. Серверный: хуков нет. Блик — движущийся линейный градиент на 200% ширины, задержка задана по строкам через 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 Avatar008Props = Omit<
ComponentPropsWithoutRef<"div">,
"children"
> & {
count?: number
label?: string
lines?: boolean
}
// Идея компонента: заглушка списка людей. Полосы имени разной длины — ровные
// одинаковые прямоугольники выглядят как таблица, а не как имена. Блик идёт
// по строкам с задержкой: одновременная вспышка читается как мигание экрана.
const STYLES = `
:where([data-vibeui-block="avatar-008"]){
--vibeui-avatar-008-size:2.75rem;
--vibeui-avatar-008-bg:oklch(1 0 0);
--vibeui-avatar-008-border:oklch(0.9 0.006 265);
--vibeui-avatar-008-base:oklch(0.93 0.005 265);
--vibeui-avatar-008-shine:oklch(0.97 0.003 265);
--vibeui-avatar-008-radius:0.75rem;
}
[data-vibeui-block="avatar-008"]{
display:flex;flex-direction:column;gap:0.75rem;
box-sizing:border-box;width:100%;max-width:22rem;padding:0.875rem;
background:var(--vibeui-avatar-008-bg);
border:1px solid var(--vibeui-avatar-008-border);
border-radius:var(--vibeui-avatar-008-radius);
}
[data-vibeui-block="avatar-008"] [data-part="row"]{display:flex;align-items:center;gap:0.75rem}
[data-vibeui-block="avatar-008"] [data-part="shape"],
[data-vibeui-block="avatar-008"] [data-part="line"]{
background:
linear-gradient(90deg,var(--vibeui-avatar-008-base) 0%,var(--vibeui-avatar-008-shine) 50%,var(--vibeui-avatar-008-base) 100%)
0 0 / 200% 100%;
animation:vibeui-avatar-008-sweep 1.4s ease-in-out infinite;
}
[data-vibeui-block="avatar-008"] [data-part="shape"]{
flex:none;width:var(--vibeui-avatar-008-size);height:var(--vibeui-avatar-008-size);
border-radius:9999px;
}
[data-vibeui-block="avatar-008"] [data-part="lines"]{display:flex;flex-direction:column;gap:0.375rem;flex:1;min-width:0}
[data-vibeui-block="avatar-008"] [data-part="line"]{height:0.625rem;border-radius:9999px}
/* Разная длина полос: одинаковые читаются как таблица, а не как имена. */
[data-vibeui-block="avatar-008"] [data-part="line"]:first-child{width:58%}
[data-vibeui-block="avatar-008"] [data-part="line"]:last-child{width:34%;height:0.5rem}
[data-vibeui-block="avatar-008"] [data-part="row"]:nth-child(2) [data-part="line"]:first-child{width:70%}
[data-vibeui-block="avatar-008"] [data-part="row"]:nth-child(3) [data-part="line"]:first-child{width:46%}
/* Задержка по строкам: одновременная вспышка выглядит как мигание экрана. */
[data-vibeui-block="avatar-008"] [data-part="row"]:nth-child(2) *{animation-delay:.14s}
[data-vibeui-block="avatar-008"] [data-part="row"]:nth-child(3) *{animation-delay:.28s}
[data-vibeui-block="avatar-008"] [data-part="row"]:nth-child(4) *{animation-delay:.42s}
@keyframes vibeui-avatar-008-sweep{
0%{background-position:120% 0}
100%{background-position:-20% 0}
}
@media (prefers-reduced-motion:reduce){
[data-vibeui-block="avatar-008"] *{animation:none!important;transition:none!important}
[data-vibeui-block="avatar-008"] [data-part="shape"],
[data-vibeui-block="avatar-008"] [data-part="line"]{background:var(--vibeui-avatar-008-base)}
}
`
/**
* Заглушка списка людей: круг под аватар и полосы под имя.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Avatar008({
count = 3,
label = "Загружаются участники",
lines = true,
className,
style,
...props
}: Avatar008Props) {
return (
<>
<style href="vibeui-avatar-008" precedence="medium">
{STYLES}
</style>
<div
{...props}
data-vibeui-block="avatar-008"
className={className}
style={style as CSSProperties}
role="status"
aria-busy="true"
aria-label={label}
>
{Array.from({ length: Math.max(1, count) }, (_, index) => (
<div key={index} data-part="row">
<span data-part="shape" />
{lines ? (
<span data-part="lines">
<span data-part="line" />
<span data-part="line" />
</span>
) : null}
</div>
))}
</div>
</>
)
}