CDP Frontend SDK
    Preparing search index...

    Interface SignInModalProps

    Props for the SignInModal component.

    interface SignInModalProps {
        children?: ReactNode;
        open?: boolean;
        setIsOpen?: (value: boolean) => void;
        onSuccess?: () => void;
    }
    Index

    Properties

    children?: ReactNode

    If provided, will render the children instead of the default trigger button.

    open?: boolean

    Whether the modal is open. Note: if you set this, you must also set setIsOpen.

    setIsOpen?: (value: boolean) => void

    A function to set the modal's open state. Note: if you set this, you must also set open.

    onSuccess?: () => void

    A function to call when the sign-in flow is successful.