Skip to content

API reference ​

Public input, return-value and behavior contracts for @virentia/ui. Start with the learning chapters if you are new to the library.

ImportExportsReference
@virentia/uirender, hydrate, createElement, h, Fragment, mergeProps, RenderOptionsRendering
@virentia/uicomponent, withRoot, ComponentConfig, ComponentOptions, ComponentInput, ModelProps, DefinedComponent, Component, ComponentSelf, ComponentProps, ViewComponents
@virentia/uiui, ref, action, LifecycleEvent, Ref, RefUnit, NativeEvent, DOMEventUnit, EventHandler, EventHandlersRefs/events
@virentia/uiFor, Portal, createContext, ForProps, ModelForProps, ContextContainers/context
@virentia/uistore, reactive, computed, event, effect, reaction, scope, scopedCore
@virentia/uiReadable, Binding, Child, ElementDescriptor, ForeignHostTag, CSSProperties, ClassList, DOMAttributes, HTMLAttributes, SVGAttributes, IntrinsicElements, JSXTypes
@virentia/ui/serverrenderToString, renderToStringAsync, renderToStaticMarkup, renderToStaticMarkupAsync, serializeStateServer/Start
@virentia/ui/startrenderPage, renderPageAsync, hydratePage, renderDocument, PagePayload, RenderedPage, HydratedPage, DocumentOptionsServer/Start
@virentia/ui/start/vitedefault, StartOptionsServer/Start
@virentia/ui/start/nodebuildStart, createStartServer, serveStart, StartBuildOptions, StartServeOptionsServer/Start
@virentia/ui/vitedefault, ViteOptionsJSX/SID
@virentia/ui/jsx-runtimejsx, jsxs, Fragment, JSX, jsxFromTemplate, jsxMember, jsxTemplateJSX/SID
@virentia/ui/jsx-dev-runtimejsxDEV, Fragment, JSXJSX/SID
@virentia/ui/react, @virentia/ui/react/serverasReactEmbedded
@virentia/ui/vue, @virentia/ui/vue/serverasVueEmbedded

jsxFromTemplate, jsxMember and jsxTemplate are internal targets emitted by the existing Vite integration. Application code uses JSX or h; these exports are listed to match the runtime entrypoint.

Import models and containers from @virentia/core/models, and mutableStore from @virentia/mutable.

Start with the tutorial to learn the library. Find task-specific material in the guides.