blok
Registers a headless component (serializer only, no composable).
Parameters
type
The class of the component.
serializer
The serializer for the component.
Type Parameters
T
The Component type to register.
fun <T : Component> blok(type: KClass<T>, serializer: KSerializer<T>, composable: @Composable (T, Modifier) -> Unit)(source)
Registers a component with its serializer and composable.
Parameters
type
The class of the component.
serializer
The serializer for the component.
composable
The composable used to render the component.
Type Parameters
T
The Component type to register.
Registers a headless component using reified type information.
Type Parameters
T
The Component type to register.
Registers a component with its composable using reified type information.
Parameters
composable
The composable used to render the component.
Type Parameters
T
The Component type to register.