FieldProps
Represents the props of the Field component that is used inside the KendoReact Form component.
children?
any
The React elements that are passed as children to the rendered component.
component
string | React.ComponentType<any>
Can be set to a React component or to the name of an HTML element,
for example, input
, select
, and textarea
.
The props that are passed to component are the
FieldRenderProps
.
name
string
The name of the field in the Form state.
Supports nested fields in the user.age
and users[index].name
formats.
onChange?
(event: any) => void
Called when underlying editor triggers it's onChange event and the Form update it's internal state. Useful for updating related fields.
Keep in mind that Form listens to this editor event and automatically keeps it's internal state up to date.
validator?
The validation functions for the Field level.
Currently, validator
supports only synchronous functions.
Using the array overload with inline array will cause infinite loop - in this case use useMemo
hook to memoize the array.