@vtaits/react-hook-form-schema
Version:
Integration of react-hook-form and @vtaits/form-schema
15 lines (12 loc) • 614 B
TypeScript
import { ListSchema as ListSchema$1 } from '@vtaits/form-schema/fields/list';
import { ListItemWrapperRenderProps } from '@vtaits/react-form-schema-base-ui';
import { ReactNode } from 'react';
import { F as FormApi, B as BaseFieldSchema } from './types-7iZNsJ6X.js';
type ListSchema<FieldSchema> = Readonly<ListSchema$1<FormApi, FieldSchema> & BaseFieldSchema & {
addButtonLabel?: ReactNode;
getBlockLabel?: (index: number) => ReactNode;
compact?: boolean;
inline?: boolean;
renderListItemWrapper?: (renderProps: ListItemWrapperRenderProps) => ReactNode;
}>;
export type { ListSchema as L };