0.0.7-alpha.0 • Published 5 years ago
react-cheapauth v0.0.7-alpha.0
react-cheapauth
[](https://www.npmjs.com/package/react-cheapauth
Prepare
Should add react-cheapauth
into current project using by the npm or yarn.
yarn add react-cheapauth
# npm i react-cheapauth
Usage
Example of use in the below.
import Cheapauth from 'vue-cheapauth';
import YourAppRoot from '...';
export default = () => {
return (
<Cheapauth
password={process.env.LOGIN_PASSWORD}
title="Authentication"
submitLabel="Login"
>
</Cheapauth>
)
}
Properties
The component Cheapauth
is required three properties password
, title
and submitLabel
. title
and submitLabel
is just become to the text of title and button of authentication form.
password
is used for comparing that an user input one.
0.0.7-alpha.0
5 years ago
0.0.6-alpha.0
5 years ago