Form

inline fun <Model : Any> Form(enabled: Boolean = true, noinline container: @Composable FormController<Model>.(contents: @Composable FormController<Model>.() -> Unit) -> Unit = { Column( verticalArrangement = Arrangement.spacedBy(LocalFormStyle.current.fieldSpacing), ) { it() } }, noinline contents: @Composable FormController<Model>.() -> Unit = {})

A Compose Form

Parameters

Model

The type this form will emit

emptyModel

Constructor for the empty model

container

The root level container for form fields

contents

The contents of the form