0.1.2 • Published 3 years ago

formulizer v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Contributors Forks Stargazers Issues MIT License LinkedIn

About The Project

import { Form, Input, Select } from "formulizer";

function MyForm(props) {
	const onSubmit = React.useCallback((values) => {
		alert(`
			Hello ${values.name},
			This form was made using formulizer.
			Your favourite Teletubbie is ${values.teletubby}
		`);
	});

	return <Form onSubmit={onSubmit}>
		<label>Name: </label> <Input type="text" name="name" /><br />
		<label>Favourite teletubbie: </label> <Select name="teletubby">
			<option>Tinky Winky</option>
			<option>Dipsy</option>
			<option>Laa-Laa</Option>
			<option>Po</option>
		</Select>
	</Form>;
}

Try it out!

Formulizer is a React library which simplifies the process of form building.

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g

Installation

  1. Get a free API Key at https://example.com
  2. Clone the repo
    git clone https://github.com/your_username_/Project-Name.git
  3. Install NPM packages
    npm install
  4. Enter your API in config.js
    const API_KEY = 'ENTER YOUR API';

Usage

Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.

For more examples, please refer to the Documentation

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Your Name - @your_twitter - email@example.com

Project Link: https://github.com/your_username/repo_name

Acknowledgements