wwsun / antd-easy-form

A much more easy form framework based on antd form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Easy Antd Form

A much more simple antd form

Docs

Online demos

How to develop

# install dependencies
yarn

# start storybook
yarn start

Usage

import { Form, FormItem } from 'antd-easy-form';

const App = () => {
  return (
    <Form onValuesChange={console.log}>
      <FormItem label="Input1" tip="memo text" name="input" component="input" required requiredMessage="input is required!" />
      <FormItem label="Input2" name="input2" component={Input as any} />
      <FormItem label="Input3" name="input3">
        <Input />
      </FormItem>
    </Form>
  );
}

About

A much more easy form framework based on antd form


Languages

Language:TypeScript 95.9%Language:JavaScript 4.1%