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

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

PropTypeDefault
valueLoraEntry[]Controlled value; use with onValueChange.
defaultValueLoraEntry[][]Initial value when uncontrolled.
onValueChange(entries: LoraEntry[]) => voidCalled with the new value when it changes.
library *readonly LoraModel[]LoRAs that can be added.
separateClipbooleantrueSeparate CLIP strength slider (ComfyUI LoraLoader). Default true.
minnumber-2Lowest strength on the model and CLIP sliders.
maxnumber2Highest strength on the model and CLIP sliders.
stepnumber0.05Strength slider increment.
onTriggerWordClick(word: string, lora: LoraModel) => voidMakes trigger-word chips buttons, e.g. to insert the word into the prompt.
hideHeaderbooleanfalseHide 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.
disabledbooleanfalseDisables adding, reordering, toggling, removing and the sliders.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<LoraStackLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Seed Input · Next: Style Presets · All Image generation