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

0.8.0 • 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>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @mgcrea/antd-hook-form

Weekly Downloads

3

Version

0.8.0

License

MIT

Unpacked Size

84.4 kB

Total Files

32

Last publish

Collaborators

  • mgcrea