React-Component-Login
Component Login use antd design
Installing
Using npm
$ npm install login-componentsimport {ResultComponent } from 'login-components'
Using yarn
$ yarn add login-componentsimport {ResultComponent } from 'login-components'
Import stylesheets
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
Example
import React, {Component } from "react";import {ResultComponent } from 'login-components' extends Component { render() { return ( <div> <ResultComponent /> </div> ); }} export default App;
Paramerter
Props | Description | Default |
---|---|---|
status | 'success' or 'error' or 'info'or 'warning' or'404'or '403'or '500' | 'info' |
title | string | |
subTitle | description(string) | |
textButton | string | textButton |
textBuy | string |