mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 13:18:04 +08:00
2cdf586291
* chore: fix lint * chore: fix lint * test: fix 16 * fix: lint
31 lines
675 B
TypeScript
31 lines
675 B
TypeScript
import React from 'react';
|
|
import { Button, Form, Input } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Form
|
|
name="wrap"
|
|
labelCol={{ flex: '110px' }}
|
|
labelAlign="left"
|
|
labelWrap
|
|
wrapperCol={{ flex: 1 }}
|
|
colon={false}
|
|
style={{ maxWidth: 600 }}
|
|
>
|
|
<Form.Item label="Normal label" name="username" rules={[{ required: true }]}>
|
|
<Input />
|
|
</Form.Item>
|
|
|
|
<Form.Item label="A super long label text" name="password" rules={[{ required: true }]}>
|
|
<Input />
|
|
</Form.Item>
|
|
|
|
<Form.Item label=" ">
|
|
<Button type="primary" htmlType="submit">
|
|
Submit
|
|
</Button>
|
|
</Form.Item>
|
|
</Form>
|
|
);
|
|
|
|
export default App;
|