A2uiComponent

Functions summary

Unit

Emits the UI for a successfully resolved A2UI component state into the Compose hierarchy.

Functions

@Composable
fun A2uiComponent(component: A2uiComponentModel, modifier: Modifier = Modifier): Unit

Emits the UI for a successfully resolved A2UI component state into the Compose hierarchy.

This composable acts as a dynamic router for recursive component rendering. It extracts the A2uiCatalog from the component's underlying surface, looks up the registered Compose-specific implementation for that component type, and delegates rendering to its A2uiComponent.Content extension function.

Parameters
component: A2uiComponentModel

The resolved component containing properties and context.

modifier: Modifier = Modifier

The Modifier to be applied to the component's root layout.

Throws
IllegalStateException

If the underlying catalog does not implement A2uiCatalog, or if the component type is not registered in the catalog.