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.
19 lines
459 B
19 lines
459 B
2 years ago
|
import React from 'react';
|
||
|
import { Select, Space, Typography } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Space wrap>
|
||
|
<Select
|
||
|
defaultValue="long, long, long piece of text"
|
||
|
style={{ width: 120 }}
|
||
|
allowClear
|
||
|
options={[
|
||
|
{ value: 'long', label: <Typography>long, long, long piece of text</Typography> },
|
||
|
{ value: 'short', label: <Typography>short</Typography> },
|
||
|
]}
|
||
|
/>
|
||
|
</Space>
|
||
|
);
|
||
|
|
||
|
export default App;
|