ValyroUI English version

Image Result Grid

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

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add image-result-grid
npm install valyro-ui-pro

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

Пропсы

PropTypeDefault
items *readonly GeneratedImage[]Finished images with their generation parameters, shown as tiles and in the viewer.
layout'grid' | 'masonry''grid'grid crops to squares; masonry keeps every image's aspect ratio.
minColumnWidthnumber200Narrowest column before the grid drops one. Default 200.
selectablebooleantrueCheckboxes and a selection bar. Default true.
selectedstring[]Controlled selected; use with onSelectedChange.
defaultSelectedstring[][]Initial selected when uncontrolled.
onSelectedChange(ids: string[]) => voidCalled with the new selected when it changes.
onAction(action: ImageAction, item: GeneratedImage) => void | falseCalled for every action. For download the grid also saves the file, unless the handler returns false.
actionsreadonly ImageAction[]ALL_ACTIONSActions offered on tiles and in the viewer. Default: all.
showDetailsbooleanfalseDetails panel (prompt, seed, parameters, copy) beside the grid for the active image.
pendingnumber0Placeholder tiles while images are on their way (e.g. a running batch).
renderPending(index: number) => ReactNodeRendered inside each pending tile, e.g. a GenerationProgress overlay.
emptyStateReactNodeShown when there are no items and nothing pending, in place of labels.empty.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<ImageResultGridLabels>Overrides for the built-in English text; keys left out keep their defaults.

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

  • Generation Progress — Шаги, ETA, живое латентное превью, очередь
  • 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

Назад: Generation Progress · Далее: Image Compare · Весь раздел «Изображения и генерация»