create-notifications

1.0.14 • Public • Published

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
  • top
  • top left
  • top right
  • bottom
  • bottom left
  • bottom right
  • center left
  • center 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})

Package Sidebar

Install

npm i create-notifications

Weekly Downloads

1

Version

1.0.14

License

MIT

Unpacked Size

11.6 kB

Total Files

4

Last publish

Collaborators

  • wum_solution_ug