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 |
|
yes |
text | object |
|
yes |
insert | string | option
|
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})