ant-design/components/select/demo/variant.tsx
MadCcc 4a07e13685
feat: Select variant (#46379)
* feat: Select variant

* chore: clean

* chore: add test

* chore: update demo
2023-12-11 14:55:58 +08:00

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;