React Action Buttons
A simple small package with action - (login / sign-in) button.
- at first issue it provides the Google login button
- in next steps, other branded buttons will be released (FB Github etc)
install
npm i react-action-buttons
yarn add react-action-buttons
usage
import
import { GoogleLoginButton } from 'react-action-buttons';
default values:
- mode -
light
- label -
Login wih google
<GoogleLoginButton onClick={} />
dark mode:
- mode -
dark
- label -
Login wih google
<GoogleLoginButton mode="dark" onClick={} />
dark mode:
- mode -
light
- label -
custom text
<GoogleLoginButton onClick={}>
custom text
</GoogleLoginButton>
OR
<GoogleLoginButton onClick={} label="custom text" />