mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +08:00
22 lines
507 B
TypeScript
22 lines
507 B
TypeScript
import React from 'react';
|
|
import { Select } from 'antd';
|
|
|
|
import TemplateSemanticPreview from '../../../.dumi/components/TemplateSemanticPreview';
|
|
|
|
const App: React.FC = () => {
|
|
return (
|
|
<TemplateSemanticPreview
|
|
component={Select}
|
|
componentName="Select"
|
|
style={{ width: 200 }}
|
|
defaultValue="aojunhao123"
|
|
options={[
|
|
{ value: 'aojunhao123', label: 'aojunhao123' },
|
|
{ value: 'thinkasany', label: 'thinkasany' },
|
|
]}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default App;
|