DocumentationDownloads and examples

Notifications

The Notifications is a styled component used to provide feedback such as success, warning, error, etc..

Notifications Props

NameUseTypeDefinition
icon
optional
stringTell whether you want the close icon or not.
success
optional
booleanChange status to Success.
error
optional
booleanChange status to Error.
info
optional
booleanChange status to Info.
warning
optional
booleanChange status to Read.
className
optional
stringAdditional styling if needed.
show
required
booleanState for showing the notification.
setShow
optional
(show: boolean) => voidIndicates whether to validate the input field on change or not.
onClose
optional
() => voidHandler function for the close button.
renderAsPortal
optional
booleanHandler to show or not as a portal.
others
optional
anyAny additional props that can be passed to the component.

Examples

Read notification
Example of a read notification.
Info notification
Example of a Info notification.
Error notification
Example of a error notification.
Success notification
Example of a success notification.
Warning notification
Example of a warning notification.