mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
2e9d14f282
Co-authored-by: Yuiai01 <dujiaqi@kezaihui.com>
19 lines
459 B
TypeScript
19 lines
459 B
TypeScript
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;
|