Skip to content

TMaize/notify

Repository files navigation

notify

A frame less notify component,watch demo

API

index.d.ts

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/notify
import { alert, message } from '@tmaize/notify'

alert('hello')

alert({ title: 'title', content: 'content', type: 'error' })

message('content')

message.error('content')

message({ content: 'content', type: 'error' })

Acknowledgments

svelte

lew-ui