UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

34 lines • 975 B
import { FieldValidate } from "./schema.mjs"; import { ReactElement, ReactNode } from "react"; //#region src/base-ui/FormKit/List.d.ts interface FormListField { index: number; key: string; name: string; } interface FormListRenderProps { add: (item?: unknown) => void; fields: FormListField[]; move: (from: number, to: number) => void; remove: (index: number) => void; } interface FormListColumn { children: ReactElement; flex?: number; name: string; required?: boolean | string; title?: ReactNode; validate?: FieldValidate; } interface FormListProps { addText?: ReactNode; children?: (props: FormListRenderProps) => ReactNode; columns?: FormListColumn[]; emptyText?: ReactNode; name: string; newItem?: unknown; } declare const FormList: import("react").NamedExoticComponent<FormListProps>; //#endregion export { FormListColumn, FormListField, FormListProps, FormListRenderProps, FormList as default }; //# sourceMappingURL=List.d.mts.map