@mgcrea/antd-hook-form
    TypeScript icon, indicating that this package has built-in type declarations

    0.7.1 • Public • Published

    antd-hook-form

    npm version npm monthly downloads npm license github main workflow

    Features

    Docs

    Install

    npm install @mgcrea/antd-hook-form

    Quickstart

    import React from 'react';
    import {Form, FormProps} from '@mgcrea/antd-hook-form';
    
    function App() {
      const onSubmit = (data) => console.log(data);
    
      return (
        <Form labelCol={{span: 4}} wrapperCol={{span: 14}} layout="horizontal" onSubmit={onSubmit}>
          <Form.Item name="input1" label="Input">
            <Input />
          </Form.Item>
          <Form.Row wrapperCol={{span: 14, offset: 4}}>
            <Button htmlType="submit">Button</Button>
          </Form.Row>
        </Form>
      );
    }

    Keywords

    none

    Install

    npm i @mgcrea/antd-hook-form

    DownloadsWeekly Downloads

    7

    Version

    0.7.1

    License

    MIT

    Unpacked Size

    78 kB

    Total Files

    26

    Last publish

    Collaborators

    • mgcrea