Package-level declarations

Types

Link copied to clipboard

Read access to a component's evaluated props with lenient, JavaScript-like conversions.

Link copied to clipboard

Renders a component from its evaluated props (port of ComponentRenderer).

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard
data class OpenUITheme(val colors: OpenUITheme.Colors, val spacing: OpenUITheme.Spacing = Spacing(), val radius: OpenUITheme.Radius = Radius(), val typography: OpenUITheme.Typography)

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

Link copied to clipboard

The chat library (port of openuiChatLibrary): every response is a single vertical Card. Use it for assistant messages in a conversation.

Link copied to clipboard

The standard library (port of openuiLibrary): a Stack root with layouts, modals and cards, for full-screen surfaces such as dashboards.

Functions

Link copied to clipboard

Applies theme to the OpenUI components rendered in content.