Display

Indeterminate Progress Bar

An indeterminate progress bar with no aria-valuenow: the moment that attribute appears, a screen reader announces a percentage nobody calculated.

  • spinner
  • progress
  • indeterminate
  • bar

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/spinner-003?lang=en

Syncing the catalogОсталось немного
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-003" (Indeterminate Progress Bar) 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-003.json

Registry item: https://vibeui.ru/r/spinner-003.json
Installs to: components/vibeui/spinner-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
An indeterminate progress bar with no aria-valuenow: the moment that attribute appears, a screen reader announces a percentage nobody calculated.

An indeterminate progress bar: the beam runs on transform and role=progressbar carries no invented percentage. Zero dependencies, one file, no client JS.

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

<Spinner003 label="Syncing the catalog" hint="Almost there" height={4} />

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-003-* palette — do not swap it for your theme tokens
- the absence of aria-valuenow: with it a screen reader announces a percentage nobody calculated
- the transform-based animation — animating width recalculates layout on every frame
- overflow:hidden on the track, otherwise the beam escapes past its edges
- the caption above the bar: a bar without words never says what is syncing
- the component's own light surface: the captions are dark and vanish on a dark catalog background

## 6. You may change
- the caption and the second line through label and hint
- the bar thickness through height in pixels
- the beam colour through the --vibeui-spinner-003-accent variable
- the block width through max-width

## 7. Rules
- Once the share is known, replace this with a determinate progress bar showing a percentage.
- A thickness below 3px is hard to see on unscaled displays.
- aria-busy sits on the track: lift it to the container when a whole section is blocked.
- 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-003.json
https://vibeui.ru/r/spinner-003.json

Серверный компонент, хуков нет. Дорожка помечена role=progressbar с aria-busy и без aria-valuenow — это и есть корректное объявление неопределённого прогресса; выдуманный процент хуже его отсутствия. Отрезок ездит по дорожке анимацией transform, а не изменением left или width: браузер не пересчитывает раскладку на каждом кадре, и полоса не греет процессор в длинном списке. Толщина вынесена в проп height и подставляется переменной в пикселях. При 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 Spinner003Props = Omit<
  ComponentPropsWithoutRef<"div">,
  "children"
> & {
  label?: string
  hint?: string
  height?: number
}

// Идея компонента: полоса неопределённого прогресса. У неё нет aria-valuenow —
// и это принципиально: как только атрибут появляется, скринридер называет
// процент, которого никто не считал. Отрезок ходит по дорожке анимацией
// transform, а не изменением left: браузер не пересчитывает раскладку на
// каждом кадре. При запрете движения отрезок занимает дорожку целиком и
// пульсирует — «работа идёт» остаётся, бег исчезает.
const STYLES = `
:where([data-vibeui-block="spinner-003"]){
--vibeui-spinner-003-height:4px;
--vibeui-spinner-003-surface:oklch(1 0 0);
--vibeui-spinner-003-border:oklch(0.9 0.006 265);
--vibeui-spinner-003-fg:oklch(0.26 0.014 265);
--vibeui-spinner-003-muted:oklch(0.55 0.014 265);
--vibeui-spinner-003-track:oklch(0.93 0.006 265);
--vibeui-spinner-003-accent:oklch(0.55 0.17 262);
--vibeui-spinner-003-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
/* Своя светлая подложка: подписи тёмные. */
[data-vibeui-block="spinner-003"]{
display:flex;flex-direction:column;gap:0.5rem;
width:100%;max-width:22rem;box-sizing:border-box;padding:0.875rem 1rem;
background:var(--vibeui-spinner-003-surface);
border:1px solid var(--vibeui-spinner-003-border);border-radius:0.875rem;
font-family:var(--vibeui-spinner-003-font);color:var(--vibeui-spinner-003-fg);
}
[data-vibeui-block="spinner-003"] [data-part="head"]{
display:flex;align-items:baseline;justify-content:space-between;gap:1rem;
font-size:0.8125rem;
}
[data-vibeui-block="spinner-003"] [data-part="hint"]{
font-size:0.75rem;color:var(--vibeui-spinner-003-muted);
}
[data-vibeui-block="spinner-003"] [data-part="track"]{
position:relative;overflow:hidden;
height:var(--vibeui-spinner-003-height);
border-radius:9999px;background:var(--vibeui-spinner-003-track);
}
/* Отрезок ездит на transform: раскладка не пересчитывается на каждом кадре. */
[data-vibeui-block="spinner-003"] [data-part="beam"]{
position:absolute;inset:0 auto 0 0;
width:40%;border-radius:9999px;
background:var(--vibeui-spinner-003-accent);
animation:vibeui-spinner-003-run 1.4s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes vibeui-spinner-003-run{
0%{transform:translateX(-100%)}
100%{transform:translateX(250%)}
}
@keyframes vibeui-spinner-003-breathe{0%,100%{opacity:.35}50%{opacity:1}}
/* Без движения отрезок занимает дорожку целиком и дышит. */
@media (prefers-reduced-motion:reduce){
[data-vibeui-block="spinner-003"] [data-part="beam"]{
width:100%;transform:none;
animation:vibeui-spinner-003-breathe 1.8s ease-in-out infinite;
}
}
`

/**
 * Полоса неопределённого прогресса без выдуманных процентов.
 * Один файл, ноль зависимостей, собственная палитра.
 */
export function Spinner003({
  label = "Синхронизация каталога",
  hint = "Осталось немного",
  height = 4,
  className,
  style,
  ...props
}: Spinner003Props) {
  const palette = {
    "--vibeui-spinner-003-height": `${height}px`,
    ...style,
  } as CSSProperties

  return (
    <>
      <style href="vibeui-spinner-003" precedence="medium">
        {STYLES}
      </style>
      <div
        {...props}
        data-vibeui-block="spinner-003"
        className={className}
        style={palette}
      >
        <div data-part="head">
          <span data-part="label">{label}</span>
          {hint ? <span data-part="hint">{hint}</span> : null}
        </div>
        <div
          data-part="track"
          role="progressbar"
          aria-label={label}
          aria-busy="true"
        >
          <span data-part="beam" />
        </div>
      </div>
    </>
  )
}