antd-v4-compatible-form
v0.0.5
Published
[email protected] form,用于 [email protected]
Downloads
91
Readme
antd-v4-compatible-form
[email protected] Form, Used for [email protected]
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>
);
};