ValyroUI English version

Progress Bar

Полосы прогресса. Бесплатно, MIT · Базовые элементы › Загрузка

Установка

npx valyro-cli@latest add progress-bar
npx shadcn@latest add https://valyro.xyz/r/progress-bar.json
npm install valyro-ui

import 'valyro-ui/styles.css';
import { ProgressBar } from 'valyro-ui';

Пропсы

PropTypeDefault
valuenumberOmit (or pass a non-finite number) for an indeterminate bar.
maxnumber100Value of a full bar; value is clamped to 0…max. A non-positive or non-finite max falls back to 100.
color'accent' | 'success' | 'warning' | 'danger' | 'neutral''accent'Fill color: the theme accent, a status color, or the foreground (neutral).
size'sm' | 'md' | 'lg''md'Track thickness.
labelReactNodeVisible caption above the bar; also names the progressbar unless aria-label is given.
showValuebooleanfalseShow the percentage next to the label.
localestringLocale for the percentage (default: the ThemeProvider's, then the browser's).
formatValue(value: number, max: number) => stringCustom value text (shown and announced), e.g. "3 of 8 files".
animation'default' | 'spring''default'spring: the fill springs to each new value (a transform, not a width change, and without overshoot) and the shown number counts along with it. default: the theme's width transition.

Похожие компоненты

  • Skeleton — Заглушки загрузки
  • Spinner — Индикатор загрузки
  • Button — Кнопки всех типов
  • Icon Button — Кнопка с иконкой
  • Button Group — Группы кнопок
  • Copy to Clipboard — Копирование с подтверждением
  • Badge — Статусы и метки
  • Avatar — Аватары пользователей
  • Tooltip — Всплывающие подсказки
  • Separator — Разделители

Назад: Spinner · Далее: App Shell · Весь раздел «Базовые элементы»