1.0.14 • Published 3 years ago

create-notifications v1.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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 nameTypeDescriptionRequired
typestringsuccess ,danger, warningyes
modestringclassic or multilanguageno is standart classic
titleobjectclassic = {text: your text} multilanguage {messageId: 'template.not.found', locale: 'en'}yes
textobjectclassic = {text: your text} multilanguage {messageId: 'template.not.found', locale: 'en'}yes
insertstringoption toptop left top right bottom bottom left bottom right center leftcenter rightno is standart top
durationintegerfor example 4 for 4 secondsno is standart 4
reloadbooleantrue or falsefalse
rewritebooleantrue or falsefalse
landingpagesstringURL to rewriteemtpy

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})
1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago