Skip to content

fengyun2/antd-v4-compatible-form

 
 

Repository files navigation

antd-v4-compatible-form

antd@4.x Form, Used for antd@3.x

Usage

import Form from 'antd-v4-compatible-form';

const ExampleForm = () => {
  function handleFinish(data) {
    console.log(data);
  }
  return (
    <Form onFinish={handleFinish}>
      <Form.Item name="username" rules={[{ required: true }]}>
        <Input placeholder="Please enter username." maxLength={128} />
      </Form.Item>
      <Button type="primary" htmlType="submit" block>
        Submit
      </Button>
    </Form>
  );
};

Document

https://next.ant.design/components/form-cn/

About

antd@4.x form,用于 antd@3.x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 52.5%
  • CSS 44.5%
  • JavaScript 3.0%