NoticeGlobal
Notice
jsx
import NoticeGlobal from '@semcore/ui/notice-global';
<NoticeGlobal />;NoticeGlobalProps
& {...}| Name | Type | Description |
|---|---|---|
| theme | Notice theme | |
| duration | number | Duration of animation, ms |
| closable | boolean | Adds a Close button |
| onClose | (event: React.SyntheticEvent) => void | Callback on a click on the close button |
| locale | string | Specifies the locale for i18n support |
NoticeGlobal.Content
The component is inherited from Box and is used to insert content in the notification.
jsx
import NoticeGlobal from '@semcore/ui/notice';
<NoticeGlobal.Content />;NoticeGlobal.CloseIcon
The component is inherited from Button and is used to insert the Close button.
jsx
import NoticeGlobal from '@semcore/ui/notice';
<NoticeGlobal.CloseIcon />;