mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
4a07e13685
* feat: Select variant * chore: clean * chore: add test * chore: update demo
27 lines
584 B
TypeScript
27 lines
584 B
TypeScript
import React from 'react';
|
|
import { Select, Space } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Space wrap>
|
|
<Select
|
|
placeholder="Borderless"
|
|
style={{ width: 120 }}
|
|
variant="borderless"
|
|
options={[
|
|
{ value: 'jack', label: 'Jack' },
|
|
{ value: 'lucy', label: 'Lucy' },
|
|
{ value: 'Yiminghe', label: 'yiminghe' },
|
|
]}
|
|
/>
|
|
<Select
|
|
placeholder="Borderless"
|
|
style={{ width: 120 }}
|
|
disabled
|
|
variant="borderless"
|
|
options={[{ value: 'lucy', label: 'Lucy' }]}
|
|
/>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|