react-action-buttons

0.0.6 • Public • Published

React Action Buttons

A simple small package with action - (login / sign-in) button.

  1. at first issue it provides the Google login button
  2. 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

alt gdefault

<GoogleLoginButton onClick={} />

dark mode:

  • mode - dark
  • label - Login wih google

alt gdefault

<GoogleLoginButton mode="dark" onClick={} />

dark mode:

  • mode - light
  • label - custom text

alt gdefault

<GoogleLoginButton onClick={}>
   custom text
</GoogleLoginButton>

OR

   <GoogleLoginButton onClick={} label="custom text" />

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.6
    1
    • latest

Version History

Package Sidebar

Install

npm i react-action-buttons

Weekly Downloads

6

Version

0.0.6

License

ISC

Unpacked Size

19.8 kB

Total Files

32

Last publish

Collaborators

  • mkitowski