1.0.22 • Published 29 days ago
@r3dm4st3r/react-hook-form v1.0.22
Usage
npm install @r3dm4st3r/react-hook-form
Quickstart Guide
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 ]
- 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 file for details.
1.0.22
29 days ago
1.0.21
2 months ago
1.0.20
4 months ago
1.0.19
4 months ago
1.0.18
4 months ago
1.0.17
4 months ago
1.0.16
4 months ago
1.0.15
4 months ago
1.0.14
4 months ago
1.0.13
4 months ago
1.0.12
4 months ago
1.0.11
4 months ago
1.0.10
4 months ago
1.0.9
4 months ago
1.0.8
4 months ago
1.0.7
4 months ago
1.0.6
4 months ago
1.0.5
4 months ago
1.0.4
4 months ago
1.0.3
4 months ago
1.0.2
4 months ago
1.0.1
4 months ago