All Projects → akiokio → ReactSignupLoginComponent

akiokio / ReactSignupLoginComponent

Licence: MIT license
The React SignupLogin Component is a drop in login/register/forgotPassword component to speed up development.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to ReactSignupLoginComponent

Oauth
🔗 OAuth 2.0 implementation for various providers in one place.
Stars: ✭ 336 (+1020%)
Mutual labels:  signup, login
Splashloginsignup
Source code for the Splash, Login and Signup Screen for Android | UI to Code - Timelapse YouTube Video
Stars: ✭ 69 (+130%)
Mutual labels:  signup, login
PHP-MySQL-User-Signup-Login-API
This step by step tutorial will guide you to setup up Login + Signup API using Core PHP + MySQL following best practices with folders structure
Stars: ✭ 58 (+93.33%)
Mutual labels:  signup, login
Node-js-functionalities
This repository contains very useful restful API's and functionalities in node-js containing many important tutorial code for mastering node-js, all tutorials have been published on medium.com, tutorials link is given below
Stars: ✭ 69 (+130%)
Mutual labels:  signup, login
Django Rest Registration
User-related REST API based on the awesome Django REST Framework
Stars: ✭ 240 (+700%)
Mutual labels:  signup, login
react-signin-form
Concept for Sign in / Sign Up form
Stars: ✭ 109 (+263.33%)
Mutual labels:  signup, login
Fsvideoview
An easy video playback view for iOS
Stars: ✭ 14 (-53.33%)
Mutual labels:  signup, login
Robin
🐧 Android login, made simple
Stars: ✭ 105 (+250%)
Mutual labels:  signup, login
Amloginsignup
Login/Signup ViewController for iOS
Stars: ✭ 215 (+616.67%)
Mutual labels:  signup, login
Fraternate
Fraternate is a standalone copy of the GitHub organization and user interaction framework. Built with Mongo dB | Node.js® | Express.js | Handlebars.js | Bootstrap.
Stars: ✭ 130 (+333.33%)
Mutual labels:  signup, login
springboot-mongodb-security
Spring Boot, Security, and Data MongoDB Authentication Example
Stars: ✭ 22 (-26.67%)
Mutual labels:  signup, login
Login-Signup-Templates
Collection of Login Signup Templates
Stars: ✭ 21 (-30%)
Mutual labels:  signup, login
google-one-tap
Google One Tap Login
Stars: ✭ 37 (+23.33%)
Mutual labels:  signup, login
SpringSecurityInEasySteps
Learn Spring Security step by step
Stars: ✭ 13 (-56.67%)
Mutual labels:  login
authorize-me
Authorization with social networks
Stars: ✭ 44 (+46.67%)
Mutual labels:  login
LoginForKotlin
Kotlin Login demo
Stars: ✭ 37 (+23.33%)
Mutual labels:  login
users-service
A small microservice for managing user registrations, password changes and issue access tokens
Stars: ✭ 16 (-46.67%)
Mutual labels:  login
YHThirdManager
一个快速、简单、易集成、扩展性好的社交化组件。摒弃友盟等三方库,使用原生SDK。支持微信支付、微信分享、微信登录、微信授权、QQ授权、QQ分享、QQ登录、新浪授权、新浪登录、新浪分享、微博评论、微博获取、支付宝支付。极大的减小了包体积;同时加入了自动管理提示框的功能
Stars: ✭ 41 (+36.67%)
Mutual labels:  login
gothic
🦇 Gothic is a user registration and authentication SWT/JWT microservice. It supports REST, gRPC, and gRPC Web API, reCAPTCHA & a variety of DBs with Gorm.
Stars: ✭ 65 (+116.67%)
Mutual labels:  signup
ionic-login-component
Free sample of Premium Ionic Login Component
Stars: ✭ 17 (-43.33%)
Mutual labels:  login

ReactSignupLoginComponent

Greenkeeper badge Coverage Status Build Status semantic-release

Check out the examples to learn how to use it.

Features

  • Updated to React 16 🎉
  • Login
  • Signup
  • Recover Password
  • Callbacks for every action
  • 100% test coverage
  • Drop-in component
  • Custom labels for any text nice for customization or internationalization

How to use it

Installing

Using npm:

$ npm install react-signup-login-component

Using yarn:

$ yarn add react-signup-login-component

Getting started

import ReactSignupLoginComponent from 'react-signup-login-component';

const LoginPage = (props) => {
    const signupWasClickedCallback = (data) => {
      console.log(data);
      alert('Signup callback, see log on the console to see the data.');
    };
    const loginWasClickedCallback = (data) => {
      console.log(data);
      alert('Login callback, see log on the console to see the data.');
    };
    const recoverPasswordWasClickedCallback = (data) => {
      console.log(data);
      alert('Recover password callback, see log on the console to see the data.');
    };
    return (
        <div>
            <ReactSignupLoginComponent
                title="My awesome company"
                handleSignup={signupWasClickedCallback}
                handleLogin={loginWasClickedCallback}
                handleRecoverPassword={recoverPasswordWasClickedCallback}
            />
        </div>
    );
};

export default LoginPage;

Configuration (Props) options

Required props

handleSignup(object)

Called when the users clicks on the signup button and the form is valid return: An object with the attributes: username, password and passwordConfirmation example:

{
  username: 'johndoe',
  password: '1234%##D',
  passwordConfirmation: '1234%##D'
};

handleLogin(object)

Called when the users clicks on the login button and the form is valid return: An object with the attributes: username and password example:

{
  username: 'johndoe',
  password: '1234%##D'
};

handleRecoverPassword(object)

Called when the users clicks on the recover password button and the form is valid return: An object with the attributes: username example:

{
  username: 'johndoe'
};

Optional props

title

Sets the h1 title on the login box example:

<Wrapper
  title="My awesome company"
  {...requiredProps} // Spread the default props. It's here to illustrate the example
/>

styles

You can overhide the component style passing an object to the styles prop. Here's an example with all the possible keys. The values can be any valid css property. example:

<ReactSignupLoginComponent
  styles={{
    mainWrapper: { backgroundColor: 'blue' },
    mainTitle: { color: 'red' },
    flipper: { transition: '0.1s' },
    signup: {
      wrapper: { backgroundColor: 'yellow' },
      inputWrapper: { backgroundColor: 'AliceBlue' },
      buttonsWrapper: { backgroundColor: 'Aqua' },
      input: { backgroundColor: 'LavenderBlush' },
      recoverPassword: {},
      button: { backgroundColor: 'LightCoral' },
    },
    login: {
      wrapper: { backgroundColor: 'yellow' },
      inputWrapper: { backgroundColor: 'AliceBlue' },
      buttonsWrapper: { backgroundColor: 'Aqua' },
      input: { backgroundColor: 'LavenderBlush' },
      recoverPasswordWrapper: { backgroundColor: 'MediumBlue' },
      recoverPasswordButton: { backgroundColor: 'OldLace ' },
      button: { backgroundColor: 'LightCoral' },
    },
    recoverPassword: {
      wrapper: { backgroundColor: 'yellow' },
      inputWrapper: { backgroundColor: 'AliceBlue' },
      buttonsWrapper: { backgroundColor: 'Aqua' },
      input: { backgroundColor: 'LavenderBlush' },
      button: { backgroundColor: 'LightCoral' },
    },
  }}
  {...requiredProps} // Spread the default props. It's here to illustrate the example
/>

Custom labels

Here's the list of possible custom labels you can use (check the storybook for usage):

usernameCustomLabel="Anything you want"
passwordCustomLabel="Anything you want"
passwordConfirmationCustomLabel="Anything you want"
recoverPasswordCustomLabel="Anything you want"
signupCustomLabel="Anything you want"
submitLoginCustomLabel="Anything you want"
goToLoginCustomLabel="Anything you want"
submitSignupCustomLabel="Anything you want"
goToSignupCustomLabel="Anything you want"
submitRecoverPasswordCustomLabel="Anything you want"

Tests

We have a 100% percent test coverage, to run the tests locally:

$ git clone https://github.com/akiokio/ReactSignupLoginComponent
$ cd ReactSignupLoginComponent
$ yarn install
$ yarn test
or to get the coverage report
$ yarn coverage

Issues

If you found something wrong with the component please open an issue here: https://github.com/akiokio/ReactSignupLoginComponent/issues/new

Notes

This readme is a working in progress, feel free to help update it making a pull request

License

Licensed under the MIT License: https://opensource.org/licenses/MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].