2.1.6 • Published 2 years ago

cos-fec-library v2.1.6

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

React Front-end Components Library

This React component library is aimed at developers to spend less time writing code and more time building a fantastic User experience.

Storybook

Demo Link

Install

Install cos-fec-library with npm

  npm install cos-fec-library

Usage/Examples

The most basic use of the Login component:

import { Login } from "cos-fec-library/dist/components/Login";
import "cos-fec-library/dist/index.css";

function App() {
    return (
        <Login
            formTitle="Sign In Form"
            userNameType="email"
            loginBtnLabel="Sigin"
            onSubmit={onSubmitFunction}
            usernamePlaceholder="Enter Username"
            passwordPlaceholder="Enter Password"
        />
    );
}

Login Props

PropsDescriptionDefault
formTitlestring"Login Form"
userNameLabelstring"User Name"
userNameType"string" or "email""string"
emailErrorstring"Invalid Email"
loginBtnLabelstring"Login"
onSubmitRequired. func-
usernamePlaceholderstring-
passwordPlaceholderstring-

You can also pass child components such as GoogleLogin or LinkedInLogin into the Login component.

import { Login } from "cos-fec-library/dist/components/Login";
import "cos-fec-library/dist/index.css";
import GoogleLogin from "react-google-login";

function App() {
    <Login onSubmit={onSubmitFunction}>
        <GoogleLogin
            className="google-signin"
            clientId={clientId}
            onFailure={onFailureCallback}
            onSuccess={onSuccessCallback}
            cookiePolicy={"single_host_origin"}
        />
    </Login>;
}

For more details see the Login Story

2.1.6

2 years ago

2.1.5

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago