Package-level declarations
Types
Read access to a component's evaluated props with lenient, JavaScript-like conversions.
Renders a component from its evaluated props (port of ComponentRenderer).
What a component's renderer gets (port of ComponentRenderProps, with the context hooks component renderers use): its evaluated props, whether the response is still streaming, and ways to render its children and the library's own view of it.
A component library: the components the model may use, how to render them, and what the system prompt says about them (port of Library). Start from openuiChatLibrary or openuiLibrary, and restyle or drop components with replacingView and removing.
Visual tokens used by the built-in components. By default they derive from the surrounding MaterialTheme; wrap content in ProvideOpenUITheme to match your design system.
Properties
The chat library (port of openuiChatLibrary): every response is a single vertical Card. Use it for assistant messages in a conversation.
The standard library (port of openuiLibrary): a Stack root with layouts, modals and cards, for full-screen surfaces such as dashboards.