infinity-forge
Version:
11 lines (10 loc) • 735 B
TypeScript
import React from 'react';
import { IdConfiguration, CredentialResponse, MomentListener, GsiButtonConfiguration } from './types/index.js';
export type GoogleLoginProps = {
onSuccess: (credentialResponse: CredentialResponse) => void;
onError?: () => void;
promptMomentNotification?: MomentListener;
useOneTap?: boolean;
containerProps?: React.ComponentPropsWithoutRef<'div'>;
} & Omit<IdConfiguration, 'client_id' | 'callback'> & GsiButtonConfiguration;
export declare function GoogleLogin({ onSuccess, onError, useOneTap, promptMomentNotification, type, theme, size, text, shape, logo_alignment, width, locale, click_listener, containerProps, ...props }: GoogleLoginProps): import("react/jsx-runtime").JSX.Element;