Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/git21221/form-snippet

A simple form that made on top of MUI components and uses react hook form for validation.
https://github.com/git21221/form-snippet

form gssoc24-ext npm-package

Last synced: about 1 month ago
JSON representation

A simple form that made on top of MUI components and uses react hook form for validation.

Awesome Lists containing this project

README

        

# FORM SNIPPET

`form-snippet` is a React package that provides a simple and flexible way to handle forms with custom components.

## Badges

| [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/) | [![form-snippet](https://img.shields.io/npm/v/form-snippet.svg)](https://www.npmjs.com/package/form-snippet) | ![NPM Downloads](https://img.shields.io/npm/dm/form-snippet) | ![npm bundle size](https://img.shields.io/bundlephobia/min/form-snippet) |
| -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------------------ |

## Installation

Install form-snippet with npm

```bash
npm install form-snippet
```

Install form-snippet with github packages

```bash
npm install @git21221/form-snippet@latest
```

## Usage/Examples

#### A signup form using form-snippet, took less than 50 lines of code and proper validation.

```javascript
import React from "react";
import {
Button,
Input,
FormWrapper,
SelectInput,
} from "@git21221/form-snippet";
import { months, dates, years, skills } from "./data/data";

function App() {
const handleSubmit = (data) => {
console.log(data);
};

return (


Signup using form-snippet























);
}

export default App;
```

## Contributing

Contributions are always welcome!

See [contributing.md](./CONTRIBUTING.md) for ways to get started.

Please adhere to this project's [code of conduct](./CODE_OF_CONDUCT.md).

## Authors

Original author of `form-snippet`

- Saikat Das [(@git21221)](https://www.github.com/git21221)

## License

[MIT](https://choosealicense.com/licenses/mit/)