Installation
npm install --save @types/react-facebook-login-component
Summary
This package contains type definitions for react-facebook-login-component (https://github.com/kennetpostigo/react-facebook-login-component).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-facebook-login-component.
index.d.ts
import * as React from "react";
export interface FacebookLoginInfo {
id: string;
accessToken: string;
name?: string | undefined;
email?: string | undefined;
}
export interface FacebookLoginProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
socialId: string;
xfbml?: boolean | undefined;
version?: string | undefined;
fields?: string | undefined;
buttonText?: string | undefined;
responseHandler: (response: FacebookLoginInfo) => void;
}
export class FacebookLogin extends React.Component<FacebookLoginProps> {}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Konstantin Lebedev.