@sergiogc9/react-ui-form
v1.3.0
Published
React UI Kit Form
Downloads
7
Maintainers
Readme
React UI Form
This package exports a form wrapper for some UI components from this library using react-hook-form
and yup
.
See more info about the library HERE.
ℹ️ This library has been implemented by me and for me, hence it is highly opinionated.
Usage
Installation
Install the package from npm or github packages:
yarn add -S @sergiogc9/react-ui-form
Documentation
DOCS WILL BE IMPROVED...
This package basically exports some utilities as util components or custom hooks.
Exported components:
Form
: Wrapper combining form UI components from this library andreact-hook-forms
andyup
with automatic validation and much more.
Exported custom hooks:
useAnimatedFieldArray
: Custom hook that improves Form components when used together with animated components where the behavior was buggy after removing elements from the field array.
Exported custom high order components:
withFormField
: Creates a component ready to be used inside a react-hook-form form