logo

arkejs/ui

FormField

id

id: string

The id of the field.

type

type: FieldType | string

The type of the field. Used for matching with Form component prop.

render

render: (props: RenderProps) => ReactElement

A render function that allows you to render the field however you want. This is useful for creating custom fields.

onChange

onChange: (event: { target: any; type?: any }) => void

A function that is called when the field value changes.