1.0.14 • Published 2 years ago

create-notifications v1.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago