contact-form-aam
v1.0.6
Published
A simple contact form library for React
Downloads
7
Readme
Bitts Simple Contact Form
This package provides a simple ContactForm component with free and paid version.
Usage Manual
Just import the ContactForm component. credential props is optional until you're a paid user with username and password.
- In your component:
// put your username
const username = "";
// put your password
const password = "";
const credential = {
username,
password,
};
const handleSubmit = (values) => {
console.log(values);
};
<ContactForm handleSubmit={handleSubmit} credential={credential} />;
- Do not forget to link the css in your "index.html"
<link rel="stylesheet" href="node_modules/contact-form/dist/style.css" />