1.3.0 • Published 8 months ago

@sergiogc9/react-ui-form v1.3.0

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
8 months ago

React UI Form

npm.io npm.io npm.io

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 and react-hook-forms and yup 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