You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
690 B
30 lines
690 B
import React from 'react';
|
|
import { Form, Input, Typography } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Form name="label-ellipsis" labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
|
|
<Form.Item
|
|
label={
|
|
<Typography.Text ellipsis>
|
|
longtextlongtextlongtextlongtextlongtextlongtextlongtext
|
|
</Typography.Text>
|
|
}
|
|
name="username"
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
|
|
<Form.Item
|
|
label={
|
|
<Typography.Text ellipsis>
|
|
longtext longtext longtext longtext longtext longtext longtext
|
|
</Typography.Text>
|
|
}
|
|
name="password"
|
|
>
|
|
<Input.Password />
|
|
</Form.Item>
|
|
</Form>
|
|
);
|
|
|
|
export default App;
|
|
|