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

Node Library

Node palette: fuzzy search, categories, favorites, drag onto the canvas. Pro · Image generation › Node graph

Searchable palette of node types: fuzzy search, socket type filter, favorites, recents and a category tree. Rows drag onto a NodeCanvas or add a node with Enter.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add node-library
npm install valyro-ui-pro

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

Props

PropTypeDefault
types *readonly NodeTypeDef[]Node type registry.
onAdd(def: NodeTypeDef) => voidClick or Enter on a node type, e.g. (def) => editor.addNode(def.type).
favoritesreadonly string[]Starred node type keys.
defaultFavoritesreadonly string[][]Initial favorites when uncontrolled.
onFavoritesChange(types: readonly string[]) => voidCalled with the new favorites when it changes.
recentsreadonly string[]Recently added node type keys, newest first; updated on add and on drop.
defaultRecentsreadonly string[][]Initial recents when uncontrolled.
onRecentsChange(types: readonly string[]) => voidCalled with the new recents when it changes.
maxRecentsnumber5Most node types kept in recents. @default 5
querystringControlled query; use with onQueryChange.
defaultQuerystring''Initial query when uncontrolled.
onQueryChange(query: string) => voidCalled with the new query when it changes.
portTypestringOnly node types with a socket of this type; '' shows all.
defaultPortTypestring''Initial portType when uncontrolled.
onPortTypeChange(type: string) => voidCalled with the new portType when it changes.
portTypesPortTypeStylesColours of socket types, as on the canvas.
defaultCollapsedreadonly string[][]Category paths collapsed at first.
draggablebooleantrueRows can be dragged onto a NodeCanvas. @default true
labelsPartial<NodeLibraryLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Node Canvas · Next: Node Inspector · All Image generation