ant-design/components/config-provider/demo/prefixCls.md
二货机器人 f01066467e
feat: ConfigProvider support iconPrefixCls (#28924)
* add iconPrefixCls support

* test: Update test case

* update less variable
2021-01-19 17:33:05 +08:00

640 B

order title debug
99
zh-CN en-US
前缀 prefixCls
true

zh-CN

修改组件和图标前缀。

en-US

Config component and icon prefixCls.

import { ConfigProvider, Select } from 'antd';
import { SmileOutlined } from '@ant-design/icons';

// 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 FormSizeDemo = () => (
  <ConfigProvider prefixCls="light" iconPrefixCls="bamboo">
    <SmileOutlined />
    <Select />
  </ConfigProvider>
);
ReactDOM.render(<FormSizeDemo />, mountNode);