Prompt notification message globally.
Notification
import { notification } from '@yuntijs/ui';Prompt notification message globally.
import { notification } from '@yuntijs/ui';based on antd Notification component.
Note: Pages that use notification need to be wrapped by the app component, otherwise the notification style may be problematic
import { App, Button, notification } from '@yuntijs/ui';
export default () => {
return (
<App>
<Button
onClick={() => {
notification.warnings({
message: 'YuntiUI nitification',
description: 'Prompt notification message globally.',
errors: [
{
name: 'YuntiUI',
message:
'The YuntiUI components are inspired by LobeUI and developed based on Antd components, fully compatible with Antd components, and it is recommended to use antd-style as the default css-in-js styling solution.',
},
],
});
}}
>
Open
</Button>
</App>
);
};| Name | Description | Type | Default |
|---|---|---|---|
| Properties definition not found for notification component | |||