blok

fun <T : Component> blok(type: KClass<T>, serializer: KSerializer<T>)(source)

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.


inline fun <T : Component> blok()(source)

Registers a headless component using reified type information.

Type Parameters

T

The Component type to register.


inline fun <T : Component> blok(noinline composable: @Composable (T, Modifier) -> Unit)(source)

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.