1.3.4 • Published 5 years ago

react-material-notification v1.3.4

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

npm-material-notification

This is a package to show material-ui styled notification in your react project.

To use it:

1) require the package

var N = require('react-material-notification');

2) render it in your master component

...
render: function() {
	return <div>
				<N.Component />
			</div>
}
...

3) wherever you want to add a notification, that should be displayed, call the function N.Add() and pass in the string or an array of strings that you want to display.

...
	N.Add(['This is one notifications', 'This is another one']);
or
	N.Add("I am a notification");

You can now also set the time after which the notifications will automatically dismissed by passing a property to the master component like so. Time is in ms by the way.

render: function() {
	return <div>
				<N.Component dismissAfter={12000} />
			</div>
}

and that's about it :) Every notification will have a dismiss button that will hide it. Enjoy

1.3.4

5 years ago

1.3.3

5 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.7

8 years ago

1.2.6

8 years ago

1.2.5

8 years ago

1.2.4

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago