@tmaize/notify
v0.4.0
Published
A frame less notify component,[watch demo](https://tmaize.github.io/notify/)
Readme
notify
A frame less notify component,watch demo
API
CDN usage
| lib | size | gzip | CDN | | --------------- | -------- | ------- | ------------------------------------------------------------------------------------------- | | all.iife.js | 14.33 kB | 5.35 kB | npmmirror | | alert.iife.js | 11.27 kB | 4.42 kB | npmmirror | | message.iife.js | 9.51 kB | 3.70 kB | npmmirror |
<script src="all.umd.js"></script>
<script>
notify.message('hello')
</script>Module usage
yarn add @tmaize/notifyimport { alert, message } from '@tmaize/notify'
alert('hello')
alert({ title: 'title', content: 'content', type: 'error' })
message('content')
message.error('content')
message({ content: 'content', type: 'error' })