1.0.3 • Published 6 years ago
@coolgk/react-facebook-login-button v1.0.3
Facebook Login Button
npm i @coolgk/react-facebook-login-button
react-facebook-login
with icon in bootrap button.
All props of react-facebook-login
except textButton
and render
new props
- buttonText - same as
textButton
<FacebookLoginButton
appId="..."
callback={console.log}
/>
requirements
Must include fortawesome and bootstrap globally
index.html example
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
index.jsx example
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../node_modules/bootstrap/dist/css/bootstrap-theme.min.css';
import fontawesome from '@fortawesome/fontawesome';
import * as faGoogle from '@fortawesome/fontawesome-free-brands/faGoogle';
fontawesome.library.add(faFacebookF);