1.6.0 • Published 3 years ago

react-mui-auth-page v1.6.0

Weekly downloads
75
License
MIT
Repository
github
Last release
3 years ago

react-mui-auth-page

npm npm NPM Snyk Vulnerabilities for npm package Libraries.io dependency status for latest release

Getting Started :rocket:

npm i react-mui-auth-page

Demo

Web Demo

CodeSandbox

Usage

import { DialogAuth } from "react-mui-auth-page";

Example

import React from "react";
import { DialogAuth } from "react-mui-auth-page";

const MyDialogAuthComponent = () => {
  const handleSignIn = ({ email, password }) => {
    console.log({ email, password });
  };
  const handleSignUp = async ({ email, name, password }) => {
    await doSomethingAsyn();
  };
  const handleForget = ({ email }) => {
    console.log({ email });
  };

  const handleSocial = {
    Google: () => {},
    Github: () => {},
  };

  return (
    <DialogAuth
      open={true}
      textFieldVariant="outlined"
      onClose={handleClose}
      handleSignUp={handleSignUp}
      handleForget={handleForget}
      handleSignIn={handleSignIn}
      handleSocial={handleSocial}
    />
  );
};

export default MyDialogAuthComponent;

Props

Prop NameTypeRequiredDefault Value
hideTabsBooleanYesFalse
textFieldVariant"outlined" or "filled" or "standard"Nofilled
openBooleanYes
onCloseFunctionYes
logoNamestring
logoComponentReact Children
handleSignUpFunctionYes
handleForgetFunctionYes
handleSignInFunctionYes
emailValidatorFunction
passwordValidatorFunction
handleSocialSocial Object

Social Object

Prop NameType
GoogleFunction
LinkedinFunction
GithubFunction
FacebookFunction
TwitterFunction

Local Run

npm install
npm run dev

ScreenShots

With Tabs

WithOut Tabs

Get Involved!

  • Pull requests are welcome!
  • Submit github issues for any feature enhancements, bugs or documentation problems

Maintainer

arpitBhalla

1.6.0

3 years ago

1.5.6

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0-alpha

3 years ago

1.0.0

3 years ago