mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 13:08:41 +08:00
4f9c8e2af2
* fix: global token in Component Token override should be respected * test: add snapshot
34 lines
743 B
TypeScript
34 lines
743 B
TypeScript
import { ConfigProvider, message } from 'antd';
|
|
import React from 'react';
|
|
|
|
/** Test usage. Do not use in your production. */
|
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPanel } = message;
|
|
|
|
export default () => (
|
|
<>
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
Message: {
|
|
contentPadding: 40,
|
|
contentBg: '#e6f4ff',
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<InternalPanel content="Hello World!" type="error" />
|
|
</ConfigProvider>
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
Message: {
|
|
colorBgElevated: '#e6f4ff',
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<InternalPanel content="Hello World!" type="error" />
|
|
</ConfigProvider>
|
|
</>
|
|
);
|