UNPKG

@apexcura/ui-builder

Version:

A low-code UI builder library for dynamic form generation and reusable components built with React, Redux, Tailwind, and Ant Design.

34 lines (33 loc) 869 B
import React from 'react'; export interface ACFileUploadProps { label?: string; accept?: string; maxFileSize?: number; onFileUpload?: (result: FileUploadResult) => void; onFileRemove?: () => void; multiple?: boolean; maxCount?: number; required?: boolean; disabled?: boolean; className?: string; showPreview?: boolean; maxPreviewRows?: number; title?: string; uploadText?: string; hintText?: string; name?: string; extractColumns?: boolean; uploadType?: 'file' | 'data' | 'raw'; serializeFile?: boolean; } export interface FileUploadResult { type: 'file' | 'data' | 'raw'; file?: File; fileBase64?: string; data?: any[]; headers?: string[]; fileName: string; fileType: string; fileSize: number; } export declare const ACFileUpload: React.FC<ACFileUploadProps>;