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.
33 lines
743 B
33 lines
743 B
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>
|
|
</>
|
|
);
|
|
|