ValyroUI Русская версия

Seed Input

Seed: random, fixed, increment. Pro · Image generation › Prompt and settings

Seed field with randomize, reuse-last, copy and the after-generation mode (fixed, random, increment).

Installation

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';

Props

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.

Related components

Previous: Aspect Ratio Picker · Next: LoRA Stack · All Image generation