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

0.1.14 • Public • Published

@vudel/core

Vudel Core sets up a framework to define fields on a field set. Using @vudel/validations

Installation

NPM

  npm install --save @vudel/core

Yarn

  yarn add @vudel/core

Usage

The following is a simple usage of creating a field set and adding some fields

  import { useFieldSet } from '@vudel/core';

  // Create the field set
  const { fields, data } = useFieldSet({ foo: 'bar', bar: 'foo' });

  // Add some fields for this field set
  fields.push({ name: 'foo' });
  fields.push({ name: 'bar' });

  // The original data is stored in the data property 
  data.foo = 'foo-bar';

License

@vudel/core is licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @vudel/core

Weekly Downloads

0

Version

0.1.14

License

MIT

Unpacked Size

19.4 kB

Total Files

17

Last publish

Collaborators

  • tspayne87