fa-react-button
v2.0.18
Published
npm package for buttons
Downloads
5
Maintainers
Keywords
Readme
Installation
npm install fa-react-buttons
social login Buttons
you can view the ui for social login buttons here
https://i.imgur.com/nyFy7En.png
import {
Button,
FacebookButton,
GithubButton,
TwitterButton,
MicrosoftButton,
SlackButton,
AppleButton,
GoogleButton,
DiscordButton,
InstagramButton
} from "fa-react-button";
<SlackButton />
<FacebookButton />
<GithubButton />
<TwitterButton />
<MicrosoftButton />
<AppleButton />
<GoogleButton />
<DiscordButton />
<InstagramButton />
you can pass your class, id function, style and etc as props
Example
import React from 'react';
import {Button} from "fa-react-button"
const app = () => {
return (
<Button label="Click Me" color="dark" />
);
}
View Buttons here
https://i.imgur.com/MjwlQse.png
Note:
color property decides the background and text color of the button
color:
dark: backgroundColor: black, color: white
light: backgroundColor: white, color: black
success: backgroundColor: green, color: white
danger: backgroundColor: red, color: white
primary: backgroundColor: blue, color: white
and if we dont pass any color it will return a button with
background color grey and color black