Skip to content

SaqibJamil7866/react-asap-forms

Repository files navigation

react-asap-forms

Reuseable Login, Signup Forms

NPM JavaScript Style Guide

Install

npm install --save react-asap-forms

Usage

>You have to import this file at the top of app.js

import "react-asap-forms/dist/index.css";
```jsx
import React, { Component } from 'react'

import { LoginForm } from 'react-asap-forms'
import 'react-asap-forms/dist/index.css'

class Example extends Component {
   var data = {
    heading: "Register",    *optional bydefault it value 'Login'
    loginFormSubmit: formSubmit,
    validationSchema, *validation schema object to validate form
    initialValues *initial values to populate form fields
  }

  render() {
    return <LoginForm {...data} />
  }
}

License

MIT © SaqibJamil7866

About

For reusable login and register forms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published