mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
2cdf586291
* chore: fix lint * chore: fix lint * test: fix 16 * fix: lint
34 lines
743 B
TypeScript
34 lines
743 B
TypeScript
import React from 'react';
|
|
import { ConfigProvider, message } from 'antd';
|
|
|
|
/** 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>
|
|
</>
|
|
);
|