ant-design/components/select/demo/bordered.tsx
lijianan b9a6b7b578
demo: update demo (#40318)
* demo: update demo

* add form

* clear

* add Select

* add

* fix style

* fix style

* fix

* revert
2023-01-19 15:37:54 +08:00

27 lines
566 B
TypeScript

import { Select, Space } from 'antd';
import React from 'react';
const App: React.FC = () => (
<Space wrap>
<Select
defaultValue="lucy"
style={{ width: 120 }}
bordered={false}
options={[
{ value: 'jack', label: 'Jack' },
{ value: 'lucy', label: 'Lucy' },
{ value: 'Yiminghe', label: 'yiminghe' },
]}
/>
<Select
defaultValue="lucy"
style={{ width: 120 }}
disabled
bordered={false}
options={[{ value: 'lucy', label: 'Lucy' }]}
/>
</Space>
);
export default App;