ValyroUI English version

Generation Progress

Шаги, ETA, живое латентное превью, очередь. Pro · Изображения и генерация › Результаты и правка

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add generation-progress
npm install valyro-ui-pro

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

Пропсы

PropTypeDefault
status'queued' | 'running' | 'done' | 'cancelled' | 'error''running'Job state; sets the icon, the bar (indeterminate while queued) and the line under the heading.
stepnumber0Sampling steps completed, clamped to 0–totalSteps.
totalStepsnumber30Sampling steps in the job; the bar fills as step / totalSteps.
queuePositionnumberPosition in the queue while queued (1 = next).
etanumberSeconds left. Omit to estimate from the pace of the steps.
previewSrcstringLatent preview image from the backend (e.g. TAESD). Without it a procedural preview sharpens from prompt + seed.
promptstringPrompt the procedural preview is painted from. The preview shows only when this or previewSrc is set.
seednumber0Seed of the procedural preview.
widthnumber1024Size of the generation; sets the preview aspect ratio.
heightnumber1024Height of the generation; with width sets the preview aspect ratio.
titleReactNodeHeading next to the status, e.g. the prompt or a job name.
messageReactNodeError details when status is error.
onCancel() => voidAdds a Cancel button while the job is queued or running; called when it is clicked.
onRetry() => voidAdds a Retry button to a failed or cancelled job, in its row; called when it is clicked.
variant'inline' | 'overlay''inline'inline is a row for lists and sidebars; overlay covers its positioned container with the preview.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<GenerationProgressLabels>Overrides for the built-in English text; keys left out keep their defaults.

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

  • Image Result Grid — Галерея результатов, действия и лайтбокс
  • Image Compare — Сравнение до/после: шторка, рядом, наложение
  • Inpaint Canvas — Маска для инпейнтинга и расширение холста
  • Generation History — История генераций по дням с фильтрами
  • Image Adjustments — Цветокоррекция: загрузка, вписывание и семь ползунков с фильтром
  • Prompt Editor — Промпт и негатив: веса, LoRA, автодополнение, токены
  • Generation Settings — Модель, сэмплер, шаги, CFG, размер, пресеты
  • Aspect Ratio Picker — Соотношение сторон и точный размер
  • Seed Input — Сид: случайный, фиксированный, инкремент
  • LoRA Stack — Стек LoRA: силы, переключатели, порядок, триггеры
  • Style Presets — Карточки стилей с превью и весами
  • Reference Image Input — Референс для img2img и ControlNet

Назад: Reference Image Input · Далее: Image Result Grid · Весь раздел «Изображения и генерация»