ValyroUI English version

Gradient Mixer

Цветовые точки на холсте и экспорт многослойного CSS-градиента. Бесплатно, MIT · Изображения и генерация › Мини-редакторы

Установка

npx valyro-cli@latest add gradient-mixer
npx shadcn@latest add https://valyro.xyz/r/gradient-mixer.json
npm install valyro-ui

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

Пропсы

PropTypeDefault
valueGradientValueThe composition: a base colour and radial layers, the first one on top.
defaultValueGradientValueDEFAULT_GRADIENTInitial composition when uncontrolled. Default: three colour points on a dark base.
onValueChange(value: GradientValue) => voidCalled with the whole new composition after each change (a drag reports once, when it ends).
maxPointsnumber8Most layers. Default 8.
historyLimitnumber50Most undoable actions. Default 50.
showControlsbooleantruePanel with the layer list and exact fields. Default true.
showExportbooleantrueThe CSS code and its copy button. Default true.
onExport(css: string) => voidCalled with the CSS when it is copied.
aspectRationumber | string'16 / 9'Proportions of the canvas. Default 16 / 9.
colorPickerLabelsPartial<ColorPickerPopoverLabels>Texts of the colour pickers inside the editor.
labelsPartial<GradientMixerLabels>Overrides for the built-in English text; keys left out keep their defaults.

Похожие компоненты

  • Pixel Painter — Рисование на пиксельной сетке и экспорт PNG
  • Prompt Editor — Промпт и негатив: веса, LoRA, автодополнение, токены
  • Generation Settings — Модель, сэмплер, шаги, CFG, размер, пресеты
  • Aspect Ratio Picker — Соотношение сторон и точный размер
  • Seed Input — Сид: случайный, фиксированный, инкремент
  • LoRA Stack — Стек LoRA: силы, переключатели, порядок, триггеры
  • Style Presets — Карточки стилей с превью и весами
  • Reference Image Input — Референс для img2img и ControlNet
  • Generation Progress — Шаги, ETA, живое латентное превью, очередь
  • Image Result Grid — Галерея результатов, действия и лайтбокс
  • Image Compare — Сравнение до/после: шторка, рядом, наложение
  • Inpaint Canvas — Маска для инпейнтинга и расширение холста

Назад: Execution Queue · Далее: Pixel Painter · Весь раздел «Изображения и генерация»