@refinio/one.ui
    • Camera component.

      Parameters

      • props: {
            className?: string;
            onPhotoTaken?: (photo: File) => void;
            onQR?: (detectedCodes: IDetectedBarcode[]) => void;
            onVideoRecorded?: (video: File) => void;
            saveFileType?: { extension: string; mimeType: string; name?: string };
            style?: CSSProperties;
        }
        • OptionalclassName?: string

          Optional. Class name of the camera container

        • OptionalonPhotoTaken?: (photo: File) => void

          Optional. Callback for captured photo. If provided, shows the photo capture button

        • OptionalonQR?: (detectedCodes: IDetectedBarcode[]) => void

          Optional. Callback for detected QR codes. If provided tries to detect QR codes instead of capturing photo or video.

        • OptionalonVideoRecorded?: (video: File) => void

          Optional. Callback for captured video. If provided, shows the video recording button

        • OptionalsaveFileType?: { extension: string; mimeType: string; name?: string }

          Optional. Mime type of the file to save. If not provided, the default mime type is used.

        • Optionalstyle?: CSSProperties

          Optional. Style of the camera container

      Returns ReactElement

    MMNEPVFCICPMFPCPTTAAATR