agronomeet_login
v1.0.24
Published
React Login Component connected to Agronomeet API
Downloads
8
Keywords
Readme
AGRONOMEET LOGIN
React Login Component connected to Agronomeet API
INSTALL
npm i agronomeet_login
USAGE
import AgronomeetLogin from 'agronomeet_login';
<AgronomeetLogin
url="" // API url
usernameLabel="" // username label upon input
usernamePlaceholder="" // username input placeholder
passwordLabel="" // password label upon input
passwordPlaceholder="Insert password" // password input placeholder
submitLabel="" // submit button label
errors={{
// object for error messages
username: '',
password: '',
server: ''
}}
onSubmitOk={res => {
// return result object if OK
}}
onSubmitError={error => {
// return error if KO
}}
jss={{
// jss styles for each element of form
container: {},
inputContainer: {},
label: {},
input: {},
inputError: {},
error: {},
button: {}
}}
/>;
DEV INSTALL
- clone repository:
git clone <repository_url>
cd path/to/app
- run
npm install
- make changes. Use
npm link
to test it npm run build
- update
package.json
version number npm publish