ValyroUI English version

Seed Input

Сид: случайный, фиксированный, инкремент. Pro · Изображения и генерация › Промпт и параметры

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add seed-input
npm install valyro-ui-pro

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

Пропсы

PropTypeDefault
valuenumberControlled value; use with onValueChange.
defaultValuenumber0Initial value when uncontrolled.
onValueChange(seed: number) => voidCalled with the new value when it changes.
mode'fixed' | 'random' | 'increment'What happens after each generation; apply it with nextSeed(seed, mode).
defaultMode'fixed' | 'random' | 'increment''random'Initial mode when uncontrolled.
onModeChange(mode: SeedMode) => voidCalled with the new mode when it changes.
hideModebooleanfalseHide the fixed / random / increment toggle.
modeCaptionbooleantrueName the active mode in a line under the field (the toggle shows icons only). Default true.
lastSeednumberSeed of the last finished generation: adds a "reuse" button.
maxnumberMAX_SEEDLargest seed: typed and arrow-key values are clamped to it, and random seeds stay within 0–max.
size'sm' | 'md''md'Height of the field and of the mode toggle (32 / 40 px), text size, and the size of the field's buttons.
disabledbooleanfalseDisables the field, its buttons and the mode toggle.
namestringForm field name.
labelsPartial<SeedInputLabels>Overrides for the built-in English text; keys left out keep their defaults.

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

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

Назад: Aspect Ratio Picker · Далее: LoRA Stack · Весь раздел «Изображения и генерация»