create-notifications
v1.0.14
Published
Create your Notification Message
Downloads
5
Maintainers
Readme
Create Notication
With this package it is possible to display Notification Message on different positions and either with free text or via the multilanguages .
The following options can be passed
Prop Types
| Prop name | Type | Description | Required | |-----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------| | type | string | success ,danger, warning | yes | | mode | string | classic or multilanguage | no is standart classic | | title | object | classic = {text: your text} multilanguage {messageId: 'template.not.found', locale: 'en'} | yes | | text | object | classic = {text: your text} multilanguage {messageId: 'template.not.found', locale: 'en'} | yes | | insert | string | option toptop left top right bottom bottom left bottom right center leftcenter right | no is standart top | | duration | integer | for example 4 for 4 seconds | no is standart 4 | |reload| boolean| true or false| false | |rewrite| boolean| true or false| false | |landingpages| string| URL to rewrite| emtpy |
Import
Use the following command to import:
import {Notification} from "create-notifications/notfication";
import 'create-notifications/style.css';;
Use
Use Import the following command to paste:
Notification({type:'success', mode:'classic', title:{text:'Testimontial'}, text:{text: "Dies ist ein Test"}, insert:'bottom',duration:4})