Notification - Keep React

Notification component in the Keep React allows you to display informative messages or alerts to users. With various styles and options for positioning, you can effectively communicate important updates or messages in a visually appealing manner.

Table of Contents#

Default Notification#

Default Notification component in the Keep React allows you to display informative messages or alerts to users.

Notification With Icon#

The Notification component in the Keep React can be enhanced with icons, providing users with visual cues alongside the message. This combination of text and icon ensures that notifications are both informative and easily comprehensible.

Notification With Avatar#

The Notification component in the Keep React can include avatars, allowing you to associate user images with notifications. This integration enhances user recognition and engagement by providing personalized and context-rich notifications.

Notification With Card#

The Notification component in the Keep React can be enhanced with a card layout, allowing you to present notifications in a visually structured manner. This design accommodates more content and context, providing users with detailed and informative notifications.

API Reference#

Explore the available props for the notification component

PropertyDescriptionTypeDefault
additionalContentAdditional content to include in the notification.ReactNodeContent
infoIconAn icon to display as additional information.ReactNode<Cookie/>
dismissDetermines whether the notification can be dismissed.booleanfalse
headerBannerSrcSource URL for the header banner image.stringNone
onDismissFunction to call when the notification is dismissed.boolean | (() => void)false
showNotificationDetermines if a notification should be shown.booleanfalse
positionSets the position of the notification.
top-left
top-right
bottom-left
bottom-right
top-left