Skip to main content

ui-runtime

@bedrock-core/ui-runtime is the core rendering and component system for building Bedrock UI.

It provides the JSX component primitives, hook system, and the API surface used to mount and manage your UI trees.

Sections

SectionDescription
ComponentsPrimitive building blocks: Panel, Text, Button, Image, Fragment
HooksReactive state and lifecycle: useState, useEffect, useEvent, useReducer, and more
APITop-level functions: render, createContext

Experimental APIs

caution

The following exports are experimental and may change or be removed. They have known limitations in multi-addon worlds.

ExportDescription
ItemRendererRenders an item icon. Requires a manual ItemAuxContext wrapping the component tree.
ItemAuxContextContext that supplies the typeId → packed-aux map consumed by ItemRenderer.
ItemAuxMapType alias for Record<string, number> — the map you build and provide.