Get StartedComponentsStylingThemingMath & Science
MCP

Forms

Form

useForm and Form.Field: validation, touched state and submit handling.

Markdown

Import

tsx
import { Form, useForm } from "@indoku/ui"

Examples

Basic usage

Minimal 8 karakter.

Props

Input

PropTypeDefaultDescription
name*string–
value*V–
onChange*(e: { target: { value: V } }) => void–
onBlur*() => void–
onValueChange*(value: V) => void–
__keyK–

Field

PropTypeDefaultDescription
meta*FieldMeta–
labelReactNode–
helperTextReactNode–
requiredboolean–
children*ReactNode–

* required. Style props and HTML attributes are accepted as well.

Created by @indokudev