JSPM

react-file-upload-preview

0.1.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 7
    • Score
      100M100P100Q32725F

    A powerful React component for previewing uploaded files before they are submitted. Enhance user experience with instant file previews and customizable display options.

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-file-upload-preview) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      handleFileUpload(function) function to get the event of the uploaded file

      inputId(string) default="input-id" input id for your input field

      accept(string) -> default = ".jpg, .jpeg, .png, .gif, .mp4, .avi, .mov, .pdf" restrict types of file you want to upload

      uploadTriggerClasses(string) default="" to add css to upload icon

      labelContainerClasses(string) default="" to add css to label container

      customPreviewUrl(string) default="image" custom Preview URL

      customFileType(string) default="image" to initialize and prefill the image/video/pdf

      customUploadIcon(string) default="image" custom upload icon URL