Package-level declarations

Types

Link copied to clipboard

A specialized form policy designed for use in Compose Previews and testing environments.

Link copied to clipboard

Defines when validation should be triggered for fields in preview environments.

Functions

Link copied to clipboard
fun <V> PreviewField(initialValue: V, validator: FieldValidator<V>? = null, name: FieldName? = null, enabled: Boolean = true, policy: PreviewPolicy = defaultPreviewPolicy, render: @Composable (FormField<V>) -> Unit)

Creates a standalone form field for use in Compose Previews and testing.

fun <V, S, U> PreviewField(initialValue: V, adapter: FieldTypeAdapter<V, S, U>, validator: FieldValidator<S>? = null, name: FieldName? = null, enabled: Boolean = true, policy: PreviewPolicy = defaultPreviewPolicy, render: @Composable (FormField<U>) -> Unit)

Creates a standalone form field with type adaptation for use in Compose Previews and testing.

Link copied to clipboard
fun PreviewPolicy(initialMode: PreviewValidationMode = PreviewValidationMode.Change): PreviewPolicy

Creates a preview policy with the specified initial validation mode.