Optional
className?: stringOptional. Class name of the camera container
Optional
onPhotoTaken?: (photo: File) => voidOptional. Callback for captured photo. If provided, shows the photo capture button
Optional
onQR?: (detectedCodes: IDetectedBarcode[]) => voidOptional. Callback for detected QR codes. If provided tries to detect QR codes instead of capturing photo or video.
Optional
onVideoRecorded?: (video: File) => voidOptional. Callback for captured video. If provided, shows the video recording button
Optional
saveFileType?: { extension: string; mimeType: string; name?: string }Optional. Mime type of the file to save. If not provided, the default mime type is used.
Optional
style?: CSSPropertiesOptional. Style of the camera container
Camera component.