You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
774 B
25 lines
774 B
import { SmileOutlined } from '@ant-design/icons';
|
|
import { Button, ConfigProvider, Select } from 'antd';
|
|
import React, { useState } from 'react';
|
|
|
|
// Ant Design site use `es` module for view
|
|
// but do not replace related lib `lib` with `es`
|
|
// which do not show correct in site.
|
|
// We may need do convert in site also.
|
|
const App: React.FC = () => {
|
|
const [prefixCls, setPrefixCls] = useState('light');
|
|
return (
|
|
<>
|
|
<Button style={{ marginBottom: '12px' }} type="primary" onClick={() => setPrefixCls('dark')}>
|
|
toggle prefixCls
|
|
</Button>
|
|
<br />
|
|
<ConfigProvider prefixCls={prefixCls} iconPrefixCls="bamboo">
|
|
<SmileOutlined />
|
|
<Select style={{ width: 120 }} />
|
|
</ConfigProvider>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default App;
|
|
|