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

Generation Settings

Model, sampler, steps, CFG, size, presets. Pro · Image generation › Prompt and settings

Model, size, sampling, seed, batch and advanced settings for a generation, with presets.

Installation

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

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

Props

PropTypeDefault
valueGenerationParamsControlled value; use with onValueChange.
defaultValuePartial<GenerationParams>Initial settings (uncontrolled); missing keys use the defaults and the first model.
onValueChange(params: GenerationParams) => voidCalled with the new value when it changes.
models *readonly CheckpointModel[]Checkpoints offered by the model picker; the first is used when no model is set. Switching to one with another baseSize rescales width and height, keeping the aspect ratio.
samplersreadonly string[]DEFAULT_SAMPLERSOptions of the Sampler select.
schedulersreadonly string[]DEFAULT_SCHEDULERSOptions of the Scheduler select.
upscalersreadonly string[]DEFAULT_UPSCALERSOptions of the Upscaler select shown when Hires. fix is on.
presetsreadonly GenerationPreset[]Saved presets; the menu loads, saves and deletes them.
defaultPresetsreadonly GenerationPreset[][]Initial presets when uncontrolled.
onPresetsChange(presets: GenerationPreset[]) => voidCalled with the new presets when it changes.
lastSeednumberSeed of the last finished generation: lets the seed field reuse it.
layout'full' | 'compact''full'compact is dense, for narrow sidebars and graph nodes. Both layouts keep their fields at the small control height (32 px), so selects, number fields, size and seed line up.
defaultAdvancedOpenbooleanfalseOpen the Advanced section initially.
disabledbooleanfalseDisables every control, including the presets menu.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<GenerationSettingsLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Prompt Editor · Next: Aspect Ratio Picker · All Image generation