@progress/kendo-react-form
Version:
React Form is a small and fast package for form state management with zero dependencies. KendoReact Form package
36 lines (35 loc) • 1.21 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { FieldValidatorType } from './FieldValidator.js';
/**
* Contains the props for the FieldArray component that you use inside forms.
*/
export interface FieldArrayProps {
/**
* Sets the field name in the form state.
*/
name: string;
/**
* Can be set to a React component.
* [`FieldArrayRenderProps`](https://www.telerik.com/kendo-react-ui/components/form/api/fieldarrayrenderprops).
*/
component: React.ComponentType<any>;
/**
* Validates the field array and returns error messages.
* Only synchronous functions are supported.
*/
validator?: FieldValidatorType | FieldValidatorType[];
/**
* Provides child elements that are passed to the rendered component.
*/
children?: any;
/**
* @hidden
*/
[customProp: string]: any;
}