Skip to content

Notice

Notice

jsx
import Notice from 'intergalactic/notice';
<Notice />;
import Notice from 'intergalactic/notice';
<Notice />;

NoticeProps

& & {...}
NameTypeDescription
hiddenbooleanProperty for managing visibility of Notice
useNotice type
themeNotice theme
durationnumberDuration of animation, ms
localestring

Notice.Label

The component is inherited from Box and is used to insert a label in the left part of the notification, usually it is an icon.

jsx
import Notice from 'intergalactic/notice';
<Notice.label />;
import Notice from 'intergalactic/notice';
<Notice.label />;

Notice.Actions

The component is inherited from Box and is used to insert control components in the lower part of the notification, usually it is a button or a group of buttons.

jsx
import Notice from 'intergalactic/notice';
<Notice.Actions />;
import Notice from 'intergalactic/notice';
<Notice.Actions />;

Notice.Content

The component is inherited from Box and is used to insert content in the notification.

jsx
import Notice from 'intergalactic/notice';
<Notice.Content />;
import Notice from 'intergalactic/notice';
<Notice.Content />;

Notice.CloseIcon

The component is inherited from Box and is used to insert the close cross.

jsx
import Notice from 'intergalactic/notice';
<Notice.CloseIcon />;
import Notice from 'intergalactic/notice';
<Notice.CloseIcon />;

NoticeSmart

This is the component version for simplified operation; for more details, see demo examples.

jsx
import { NoticeSmart } from 'intergalactic/notice';
<NoticeSmart />;
import { NoticeSmart } from 'intergalactic/notice';
<NoticeSmart />;

NoticeSmartProps

& {...}
NameTypeDescription
labelReact.ReactNodeA custom element for additional information
actionsReact.ReactNodeCustom action element
closablebooleanAdds a Close icon
onClose(event: React.SyntheticEvent) => voidCallback on a click on the close button

Released under the MIT License.

Released under the MIT License.