Hiyve Components - v1.0.0
    Preparing search index...

    Interface PhoneCameraDialogProps

    Props for PhoneCameraDialog.

    interface PhoneCameraDialogProps {
        error?: string | null;
        isExpired?: boolean;
        labels?: Partial<PhoneCameraDialogLabels>;
        onClose: () => void;
        onDisconnect?: () => void;
        onError?: (error: Error) => void;
        onRegenerate?: () => void;
        open: boolean;
        qrUrl: string | null;
        status: PhoneCameraStatus;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    error?: string | null

    Error message when status is "error".

    isExpired?: boolean

    Whether the QR code has expired.

    labels?: Partial<PhoneCameraDialogLabels>

    Override default labels for i18n.

    onClose: () => void

    Called when the user requests to close the dialog.

    onDisconnect?: () => void

    Called when the user disconnects the phone camera.

    onError?: (error: Error) => void

    Called when an error occurs (e.g. clipboard write failure).

    onRegenerate?: () => void

    Called when the user requests a new QR code.

    open: boolean

    Whether the dialog is open.

    qrUrl: string | null

    The URL encoded in the QR code. null while generating.

    Current connection status.

    sx?: SxProps<Theme>

    MUI sx override for the Dialog Paper.