@vtaits/react-hook-form-schema
Version:
Integration of react-hook-form and @vtaits/form-schema
14 lines (11 loc) • 621 B
TypeScript
import { SetSchema as SetSchema$1 } from '@vtaits/form-schema/fields/set';
import { ReactNode, HTMLProps } from 'react';
import { FieldValues } from 'react-hook-form';
import { d as RenderField } from './types-XL-2FxMV.js';
type SetSchema<FieldSchema, Values extends FieldValues = FieldValues, Payload = any> = SetSchema$1<FieldSchema> & {
label?: ReactNode;
isWrapped?: boolean;
rootProps?: Partial<HTMLProps<HTMLElement>>;
renderSet?: (renderField: RenderField<Values, Payload>, names: readonly string[], excludePaths: readonly string[][] | undefined) => ReactNode;
};
export type { SetSchema as S };