import * as React from 'react'; import type { PolymorphicForwardRefComponent } from '../../utils/index.js'; type FileUploadCardProps = { /** * Files to pass (only needed when passing a custom action) */ files?: File[]; /** * Callback fired when files has changed (only needed passing custom action) */ onFilesChange?: (files: File[]) => void; /** * Node that is shown when there is no file uploaded * Either pass `FileEmptyCard` (for default state) or a different component to show * @default */ emptyCard?: React.ReactNode; /** * Input node * @default */ input?: React.ReactNode; }; /** * Default card to be used with the `FileUpload` wrapper component for single-file uploading. * @example * * setFiles(files)}> * * * * * Custom File Name * * Custom File Description * * * *