/** * Props for the Upload component. * @gen_ai Use SimpleFileDemo type for any Files you want to create for demo purposes. for File, you can use an object with name and size properties { name: "File name" size: 123000 } */ export interface IUpload { /** * Event handler for when user selects files. */ onChangeFiles?: (files: File[]) => void; /** * Sets uploading state for component. */ isUploading?: boolean; /** * Indicates files have been uploaded. */ isUploaded?: boolean; /** * Placeholder for the Upload component */ placeholder?: string; /** * @deprecated Castle UI localises this internally */ uploadButtonLabel?: string; /** * Indicates if multiple files can be uploaded. */ multiple?: boolean; /** * Controlled values for Upload. * Accepts either an array of `File` objects (native) or objects with `name` and `size`. */ files?: File[]; }