1.0.5 • Published 6 years ago
loginctrl v1.0.5
loginCtrl
A reusable Login Control using React, Bootstrap, and Material-ui
Usage:
(1) Install Material-UI: npm install @material-ui/core
(2) Code Sample:
//Required npm import.
import { LoginCtrl } from 'loginctrl/es/loginCtrl'
//Validation functions
validate() {//Login Validation Code return true | false; }
validateAction() { //Action to take on validate return true };
//HTML to include control in page:
<LoginCtrl validate={this.validate.bind(this)} validateAction={this.validateAction.bind(this)} alertMessage={"Your Custom Message goes here!"} />