1.0.4 • Published 12 months ago
react-component-notification v1.0.4
react-component-notification
Simple React notification component.
Check out demo here
Installation
npm install react-component-notification
or:
yarn add react-component-notification
Usage
import Notification from "react-simple-notification";
<Notification title="Amazing title" content="Your best content" />;
Props | Description | Default value | type |
---|---|---|---|
title | title displayed in the notification | null | string |
content | content displayed in the notification | null | string |
closeTimeOut | delay to hide the notification (in ms) | 3000 | integer |
icon | icon in the notification | null | element |
className | className of the notification container | null | string |
position | position on the screen | top_left | string |
Possible position
: top_left, top_center, top_right, bottom_left, bottom_center, bottom_right
Developed with ♥️ by Balzac 🥷🏻