## Photo Upload Component

A simple tool for quickly uploading photos in your application.
Demo
Required Imports
import { PhotoUploadModule } from 'nextsapien-component-lib';
Input and Output Properties

Type | Name | Description | Required
--- | --- | --- | ---
Input | maxNumOfPhotos | The maximum number of photos that can be uploaded. | false
Input | photos | An array of uploaded photos represented by `ImageModel`. | true
Input | slotsPerRow | The number of photo slots to display per row. | false
Input | gridGap | The gap (in pixels) between the photo slots. | false
Input | enableDragAndDrop | Enables drag-and-drop functionality for uploading images. | false
Input | infoIcon | The icon used to display help or information about image uploading. | false
Input | largeFileUploadWarningParams | Settings for warning the user when uploading large files. | false
Input | photoAspectRatio | The aspect ratio of the photos being uploaded. | false
Input | enableNsfwCheck | Enables checking if an uploaded image contains NSFW content. | false
Input | enableFaceCheck | Enables checking if an uploaded image contains a face. | false
Input | faceDetector | A function to detect faces in the uploaded image. | false
Input | nsfwChecker | A function to check for NSFW content in the uploaded image. | false
Input | compressRatio | Maximum scale factor as a percentage. | false
Input | compressQuality | Image quality factor as a percentage. | false
Output | photosUpload | Emits an array of `ImageModel` whenever photos are uploaded. | true
Output | photosDelete | Emits an array of `ImageModel` whenever a photo is deleted. | n/a
Output | photoUploadFail | Emits the file name if the photo upload fails. | n/a
Output | dupPhotosDetect | Emits the index of the duplicate photo if detected during upload. | n/a
Output | unsupportedFormatsDetect | Emits a list of unsupported file formats detected during upload. | n/a
Output | maxUploadLimitExceeded | Emits a notification when the maximum upload limit is exceeded. | n/a

Example usage
`{{ codeExample }}`