# @r3dm4st3r/react-hook-form

> A comprehensive collection of React hook form elements thoughtfully designed with Mantine UI components, seamlessly integrated through a context provider for an enhanced development experience.

Latest version **1.0.22** (published 2024-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @r3dm4st3r/react-hook-form
pnpm add @r3dm4st3r/react-hook-form
yarn add @r3dm4st3r/react-hook-form
bun add @r3dm4st3r/react-hook-form
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.22 |
| Published | 2024-04-11 |
| First published | 2024-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 33.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | r3dm4st3r |
| Maintainers | r3dm4st3r |
| Keywords | react hook form, form elements, react form elements, mantine ui, react |

## Links

- npm: https://www.npmjs.com/package/@r3dm4st3r/react-hook-form
- npm.io page: https://npm.io/package/@r3dm4st3r/react-hook-form

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.22 (latest) — 2024-04-11
- 1.0.21 — 2024-03-07
- 1.0.20 — 2024-01-23
- 1.0.19 — 2024-01-20
- 1.0.18 — 2024-01-20
- 1.0.17 — 2024-01-18
- 1.0.16 — 2024-01-17
- 1.0.15 — 2024-01-16
- 1.0.14 — 2024-01-15
- 1.0.13 — 2024-01-15
- 1.0.12 — 2024-01-15
- 1.0.11 — 2024-01-15
- 1.0.10 — 2024-01-15
- 1.0.9 — 2024-01-15
- 1.0.8 — 2024-01-15
- … 7 more at https://npm.io/package/@r3dm4st3r/react-hook-form/versions

## README

## Usage
    npm install @r3dm4st3r/react-hook-form

### Quickstart Guide

```jsx
import { Button } from '@mantine/core';
import { FormProvider, useForm } from 'react-hook-form';

import { Input, PasswordInput } from '@r3dm4st3r/react-hook-form';

function App() {

    const methods = useForm({
        mode: 'onBlur',
        defaultValues: {
            username: '',
            password: '',
        }
    });

    const handleFormSubmit = (values) => {
        console.log({values});
    };

    return (
        <FormProvider {...methods}>
            <form onSubmit={methods.handleSubmit(handleFormSubmit)}>
                <Input name="username" label="Username" props={{size: 'lg'}} />
                <PasswordInput name="password" label="PasswordInput" props={{size: 'lg'}} />
                <Button type="submit" size="lg">Submit</Button>
            </form>
        </FormProvider>
    );
}
```

### Components [ [View All](src%2Felements) ]

- Input
- Password
- Switch
- Select
- Radio
- Textarea
- Checkbox
- Chip
- ChipGroup
- ColorPicker
- ColorInput

And many more is about to add...

> This Package has been made to quick start with react-hook-forms using Mantine UI. If you find this useful, star the repo, If you find any issue or have some feedback or suggestion, reach me out.

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---
_Source: https://npm.io/package/@r3dm4st3r/react-hook-form · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
