ComponentRenderProps

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.

Properties

Link copied to clipboard

Whether the response is still streaming, so inputs stay disabled until it ends (useIsStreaming).

Link copied to clipboard

The element's evaluated props.

Functions

Link copied to clipboard

Renders the library's own view of the component, to wrap or restyle in a view that replaces it with Library.replacingView. It keeps the component's validation and actions. It renders nothing for a component that was not replaced.

Link copied to clipboard

Renders the prop named key that holds components, such as a card's children.