LoRA Stack
LoRA stack: strengths, toggles, order, trigger words. Pro · Image generation › Prompt and settings
Stack of LoRAs with strengths, enable toggles, drag-to-reorder and trigger words.
Installation
npx valyro-cli@latest login
npx valyro-cli@latest add lora-stack
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { LoraStack } from 'valyro-ui-pro';
Props
| Prop | Type | Default | |
|---|---|---|---|
value | LoraEntry[] | Controlled value; use with onValueChange. | |
defaultValue | LoraEntry[] | [] | Initial value when uncontrolled. |
onValueChange | (entries: LoraEntry[]) => void | Called with the new value when it changes. | |
library * | readonly LoraModel[] | LoRAs that can be added. | |
separateClip | boolean | true | Separate CLIP strength slider (ComfyUI LoraLoader). Default true. |
min | number | -2 | Lowest strength on the model and CLIP sliders. |
max | number | 2 | Highest strength on the model and CLIP sliders. |
step | number | 0.05 | Strength slider increment. |
onTriggerWordClick | (word: string, lora: LoraModel) => void | Makes trigger-word chips buttons, e.g. to insert the word into the prompt. | |
hideHeader | boolean | false | Hide the "LoRA · 2 of 3 active" header (when the host already labels the section). |
size | 'sm' | 'md' | 'md' | sm tightens the cards and shrinks the thumbnails, e.g. for a sidebar or graph node. |
disabled | boolean | false | Disables adding, reordering, toggling, removing and the sliders. |
locale | string | BCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's. | |
labels | Partial<LoraStackLabels> | 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
- Seed Input — Seed: random, fixed, increment
- 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: Seed Input · Next: Style Presets · All Image generation