0.0.6 • Published 5 years ago
react-action-buttons v0.0.6
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-buttonsusage
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" />