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

Style Presets

Style cards with previews and weights. Pro · Image generation › Prompt and settings

Grid of 4:5 style cards (preview with the name over it), multi-select with strengths, search and categories.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add style-presets
npm install valyro-ui-pro

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

Props

PropTypeDefault
presets *readonly StylePreset[]Styles shown as cards; category feeds the filter, and search matches every text field.
valueStyleSelection[]Controlled value; use with onValueChange.
defaultValueStyleSelection[][]Initial value when uncontrolled.
onValueChange(selection: StyleSelection[]) => voidCalled with the new value when it changes.
multiplebooleantrueAllow several styles. Default true.
maxnumberMost styles at once (multiple only).
weightsbooleantrueStrength chip on each selected card; it opens a 0–2 slider. Default true.
filtersbooleantrueSearch field and category filter. Default true.
minCardWidthnumber132Narrowest card. Default 132.
size'sm' | 'md''md'sm tightens the grid and uses smaller names.
disabledbooleanfalseDisables picking styles, clearing and the strength sliders; search and filters stay usable.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<StylePresetsLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: LoRA Stack · Next: Reference Image Input · All Image generation