Display
Dots Wave Loader
Waiting shown as three dots instead of a ring: dots take less height and sit inline beside text without pushing the line apart.
- spinner
- dots
- loading
- status
Preview
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/spinner-002?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 "spinner-002" (Dots Wave Loader) 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/spinner-002.json
Registry item: https://vibeui.ru/r/spinner-002.json
Installs to: components/vibeui/spinner-002.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
Waiting shown as three dots instead of a ring: dots take less height and sit inline beside text without pushing the line apart.
A three-dot loader: the wave is built from delays derived from one duration, with a mandatory caption. Zero dependencies, one file, no client JS.
## 3. How to use it
import { Spinner002 } from "@/components/vibeui/spinner-002"
<Spinner002 label="Building the catalog" speed={1.2} />
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-spinner-002-* palette — do not swap it for your theme tokens
- the caption beside the dots: three dots alone never say what is happening
- the delays derived from a single duration — otherwise the tempo is edited in three places
- role=status with aria-live: without them a screen reader stays silent about the work
- the dots freezing at different opacities under prefers-reduced-motion: the state must remain visible
- the component's own light surface: the caption is dark and disappears on a dark catalog background
## 6. You may change
- the caption text and its length
- the wave tempo through speed in seconds
- the dot colour through the --vibeui-spinner-002-accent variable
- the dot size through the --vibeui-spinner-002-dot variable
## 7. Rules
- A wave faster than 0.6s reads as jitter rather than waiting.
- Three dots are not a progress indicator: use a bar with a percentage when the share is known.
- aria-live=polite does not interrupt: the message is spoken after the current phrase.
- 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/spinner-002.jsonhttps://vibeui.ru/r/spinner-002.jsonСерверный компонент, хуков нет. Волна собрана задержками, посчитанными от одной переменной --vibeui-spinner-002-speed через calc, поэтому темп меняется одним числом, а не тремя правками анимации. Точки декоративны и помечены aria-hidden, состояние объявлено role=status с aria-live=polite на корне — иначе скринридер молчит о том, что идёт работа. При 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 Spinner002Props = Omit<
ComponentPropsWithoutRef<"div">,
"children"
> & {
label?: string
speed?: number
}
// Идея компонента: ожидание тремя точками вместо кольца. Точки занимают
// меньше высоты, чем кольцо, и потому встают в строку рядом с текстом, не
// раздвигая её. Волна собрана задержками, посчитанными от одной длительности,
// поэтому темп меняется одним числом. При запрете движения точки замирают
// разной яркостью — сообщение «идёт работа» остаётся, мигание исчезает.
const STYLES = `
:where([data-vibeui-block="spinner-002"]){
--vibeui-spinner-002-speed:1.2s;
--vibeui-spinner-002-dot:0.4375rem;
--vibeui-spinner-002-surface:oklch(1 0 0);
--vibeui-spinner-002-border:oklch(0.9 0.006 265);
--vibeui-spinner-002-fg:oklch(0.26 0.014 265);
--vibeui-spinner-002-accent:oklch(0.55 0.17 262);
--vibeui-spinner-002-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
/* Своя светлая подложка: подпись тёмная, а ожидание кладут поверх всего. */
[data-vibeui-block="spinner-002"]{
display:inline-flex;align-items:center;gap:0.625rem;
box-sizing:border-box;padding:0.625rem 0.875rem;
background:var(--vibeui-spinner-002-surface);
border:1px solid var(--vibeui-spinner-002-border);border-radius:9999px;
font-family:var(--vibeui-spinner-002-font);color:var(--vibeui-spinner-002-fg);
font-size:0.8125rem;
}
[data-vibeui-block="spinner-002"] [data-part="dots"]{
display:inline-flex;align-items:center;gap:0.25rem;flex:none;
}
/* Задержки посчитаны от одной длительности: темп меняется одним числом. */
[data-vibeui-block="spinner-002"] [data-part="dot"]{
width:var(--vibeui-spinner-002-dot);height:var(--vibeui-spinner-002-dot);
border-radius:9999px;background:var(--vibeui-spinner-002-accent);
animation:vibeui-spinner-002-wave var(--vibeui-spinner-002-speed) ease-in-out infinite;
}
[data-vibeui-block="spinner-002"] [data-part="dot"]:nth-child(2){
animation-delay:calc(var(--vibeui-spinner-002-speed) / -6);
}
[data-vibeui-block="spinner-002"] [data-part="dot"]:nth-child(3){
animation-delay:calc(var(--vibeui-spinner-002-speed) / -3);
}
@keyframes vibeui-spinner-002-wave{
0%,60%,100%{opacity:.28;transform:translateY(0)}
30%{opacity:1;transform:translateY(-0.1875rem)}
}
[data-vibeui-block="spinner-002"] [data-part="label"]{font-weight:600}
/* Без движения точки замирают разной яркостью: состояние читается, мигания нет. */
@media (prefers-reduced-motion:reduce){
[data-vibeui-block="spinner-002"] *{animation:none!important;transition:none!important}
[data-vibeui-block="spinner-002"] [data-part="dot"]:nth-child(1){opacity:1}
[data-vibeui-block="spinner-002"] [data-part="dot"]:nth-child(2){opacity:.6}
[data-vibeui-block="spinner-002"] [data-part="dot"]:nth-child(3){opacity:.3}
}
`
/**
* Ожидание тремя точками: волна из задержек, посчитанных от одной длительности.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Spinner002({
label = "Собираем каталог",
speed = 1.2,
className,
style,
...props
}: Spinner002Props) {
const palette = {
"--vibeui-spinner-002-speed": `${speed}s`,
...style,
} as CSSProperties
return (
<>
<style href="vibeui-spinner-002" precedence="medium">
{STYLES}
</style>
<div
{...props}
data-vibeui-block="spinner-002"
role="status"
aria-live="polite"
className={className}
style={palette}
>
<span data-part="dots" aria-hidden="true">
<span data-part="dot" />
<span data-part="dot" />
<span data-part="dot" />
</span>
<span data-part="label">{label}</span>
</div>
</>
)
}