@effective-forms/core
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

@effective-forms/zod

See full documentaion

Installation

NPM

npm install effector @effective-forms/core

Yarn

yarn add effector @effective-forms/core

Usage example

import { createForm } from '@effective-forms/core';

const form = createForm(
  fields: {
    email: {
      init: '',
      validator: (email) => {
        if (email.length > 2) {
          return { result: true };
        }

        return { result: false, errors: ['is not valid'] };
      },
    }
  },
  validator: (fields) => ...
);

/@effective-forms/core/

    Package Sidebar

    Install

    npm i @effective-forms/core

    Weekly Downloads

    1

    Version

    0.0.14

    License

    MIT

    Unpacked Size

    10 kB

    Total Files

    7

    Last publish

    Collaborators

    • miizzo