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
| Prop | Type | Default | |
|---|---|---|---|
value | number | Controlled value; use with onValueChange. | |
defaultValue | number | 0 | Initial value when uncontrolled. |
onValueChange | (seed: number) => void | Called 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) => void | Called with the new mode when it changes. | |
hideMode | boolean | false | Hide the fixed / random / increment toggle. |
modeCaption | boolean | true | Name the active mode in a line under the field (the toggle shows icons only). Default true. |
lastSeed | number | Seed of the last finished generation: adds a "reuse" button. | |
max | number | MAX_SEED | Largest 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. |
disabled | boolean | false | Disables the field, its buttons and the mode toggle. |
name | string | Form field name. | |
labels | Partial<SeedInputLabels> | Overrides for the built-in English text; keys left out keep their defaults. |
Related components
- Prompt Editor — Prompt and negative prompt: weights, LoRA, autocomplete, token count
- Generation Settings — Model, sampler, steps, CFG, size, presets
- Aspect Ratio Picker — Aspect ratio and exact size
- LoRA Stack — LoRA stack: strengths, toggles, order, trigger words
- Style Presets — Style cards with previews and weights
- Reference Image Input — Reference image for img2img and ControlNet
- Generation Progress — Steps, ETA, live latent preview, queue
- Image Result Grid — Result gallery with actions and a lightbox
- Image Compare — Before/after comparison: slider, side by side, overlay
- Inpaint Canvas — Inpainting mask and canvas outpainting
- Generation History — Generation history by day, with filters
- Image Adjustments — Color grading: upload, fit and seven filter sliders
Previous: Aspect Ratio Picker · Next: LoRA Stack · All Image generation