@sergiogc9/react-ui-form
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

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 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

/@sergiogc9/react-ui-form/

    Package Sidebar

    Install

    npm i @sergiogc9/react-ui-form

    Weekly Downloads

    1

    Version

    1.3.0

    License

    UNLICENSED

    Unpacked Size

    205 kB

    Total Files

    55

    Last publish

    Collaborators

    • sergiogc9