|
1 |
| -# rc-notification |
| 1 | +# @rc-component/notification |
2 | 2 |
|
3 | 3 | React Notification UI Component
|
4 | 4 |
|
5 | 5 | [![NPM version][npm-image]][npm-url] [](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Test coverage][coveralls-image]][coveralls-url] [![npm download][download-image]][download-url] [![bundle size][bundlephobia-image]][bundlephobia-url]
|
6 | 6 |
|
7 |
| -[npm-image]: http://img.shields.io/npm/v/rc-notification.svg?style=flat-square |
8 |
| -[npm-url]: http://npmjs.org/package/rc-notification |
| 7 | +[npm-image]: http://img.shields.io/npm/v/@rc-component/notification.svg?style=flat-square |
| 8 | +[npm-url]: http://npmjs.org/package/@rc-component/notification |
9 | 9 | [github-actions-image]: https://github.com/react-component/notification/workflows/CI/badge.svg
|
10 | 10 | [github-actions-url]: https://github.com/react-component/notification/actions
|
11 | 11 | [coveralls-image]: https://img.shields.io/coveralls/react-component/notification.svg?style=flat-square
|
12 | 12 | [coveralls-url]: https://coveralls.io/r/react-component/notification?branch=master
|
13 |
| -[download-image]: https://img.shields.io/npm/dm/rc-notification.svg?style=flat-square |
14 |
| -[download-url]: https://npmjs.org/package/rc-notification |
15 |
| -[bundlephobia-url]: https://bundlephobia.com/result?p=rc-notification |
16 |
| -[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-notification |
| 13 | +[download-image]: https://img.shields.io/npm/dm/@rc-component/notification.svg?style=flat-square |
| 14 | +[download-url]: https://npmjs.org/package/@rc-component/notification |
| 15 | +[bundlephobia-url]: https://bundlephobia.com/result?p=@rc-component/notification |
| 16 | +[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@rc-component/notification |
17 | 17 |
|
18 | 18 | ## Install
|
19 | 19 |
|
20 |
| -[](https://npmjs.org/package/rc-notification) |
| 20 | +[](https://npmjs.org/package/@rc-component/notification) |
21 | 21 |
|
22 | 22 | ## Usage
|
23 | 23 |
|
24 | 24 | ```js
|
25 |
| -import Notification from 'rc-notification'; |
| 25 | +import Notification from '@rc-component/notification'; |
26 | 26 |
|
27 |
| -Notification.newInstance({}, notification => { |
| 27 | +Notification.newInstance({}, (notification) => { |
28 | 28 | notification.notice({
|
29 |
| - content: 'content' |
| 29 | + content: 'content', |
30 | 30 | });
|
31 | 31 | });
|
32 | 32 | ```
|
33 | 33 |
|
34 | 34 | ## Compatibility
|
35 | 35 |
|
36 |
| -| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Electron | |
37 |
| -| --- | --- | --- | --- | --- | |
38 |
| -| IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | |
| 36 | +| Browser | Supported Version | |
| 37 | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | |
| 38 | +| [<br>Firefox](http://godban.github.io/browsers-support-badges/) | last 2 versions | |
| 39 | +| [<br>Chrome](http://godban.github.io/browsers-support-badges/) | last 2 versions | |
| 40 | +| [<br>Safari](http://godban.github.io/browsers-support-badges/) | last 2 versions | |
| 41 | +| [<br>Electron](http://godban.github.io/browsers-support-badges/) | last 2 versions | |
39 | 42 |
|
40 | 43 | ## Example
|
41 | 44 |
|
@@ -188,4 +191,4 @@ open coverage/ dir
|
188 | 191 |
|
189 | 192 | ## License
|
190 | 193 |
|
191 |
| -rc-notification is released under the MIT license. |
| 194 | +@rc-component/notification is released under the MIT license. |
0 commit comments