An open API service indexing awesome lists of open source software.

https://github.com/itzg/react-mui-login-register

A user login/register React component styled with Material UI that includes options to use an authentication provider
https://github.com/itzg/react-mui-login-register

login-forms material-ui react

Last synced: over 1 year ago
JSON representation

A user login/register React component styled with Material UI that includes options to use an authentication provider

Awesome Lists containing this project

README

          

[![](https://img.shields.io/circleci/project/github/itzg/react-mui-login-register/master.svg)](https://circleci.com/gh/itzg/react-mui-login-register/tree/master)
[![](https://img.shields.io/npm/v/react-mui-login-register.svg)](https://www.npmjs.com/package/react-mui-login-register)
[![](https://img.shields.io/badge/demo-surge-blue.svg)](https://react-mui-login-register.surge.sh/)
[![](https://img.shields.io/github/stars/itzg/react-mui-login-register.svg?label=Stars&style=social)](https://github.com/itzg/react-mui-login-register)

This is a user login/register React component that includes options to use an authentication provider.
It is styled in Material Design using [Material UI](https://material-ui-next.com/)
and the forms are powered by [Formsy](https://github.com/formsy/formsy-react).

## Screenshots

![](docs/screenshot-login.png)

![](docs/screenshot-register.png)

## Interactive Demo/Editor

[Demo of latest release](https://react-mui-login-register.surge.sh/)

[![Edit try-react-mui-login-register](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/cold-sound-0fxqs?fontsize=14)

## Install

```
yarn add react-mui-login-register
```

or

```
npm i --save react-mui-login-register
```

## Quick Start

This is example of using the

```javascript
import LoginRegister from 'react-mui-login-register';

class Demo extends Component {
render() {

const header = (


Welcome


);

const footer = (


v0.9

);

return (



);
}

handleLogin = content => {
alert(`Logging in with content '${JSON.stringify(content)}'`);
};

handleLoginWithProvider = providerId => {
alert(`Logging in with provider '${providerId}'`);
};

handleRegister = content => {
alert(`Registering with content '${JSON.stringify(content)}'`);
};

handleRegisterWithProvider = providerId => {
alert(`Registering with provider '${providerId}'`);
};
}

```