npm.io
1.0.5 • Published 7 years ago

loginctrl

Licence
MIT
Version
1.0.5
Deps
2
Size
2.1 MB
Vulns
0
Weekly
0

loginCtrl

Travis npm package Coveralls

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!"} />

Keywords