rc-toaster

0.1.8 • Public • Published

react-toast

react component of toast

install

npm install --save rc-toaster

usage

import Toast from 'rc-toaster';

Toast.text('this is a Toast');
Toast.text({
  content: <span>this is a Toast</span>,
  mask: false,
  duration: 5,
  onCloseCallBack: function(){
    console.log('has close')
  }
});

API

property explain type default
content show contents string -
mask show mask boolean true
prefixCls style className string 'w-toast'
duration Destruction time number 3
onCloseCallBack close callback function -

Readme

Keywords

Package Sidebar

Install

npm i rc-toaster

Weekly Downloads

1

Version

0.1.8

License

ISC

Unpacked Size

45.3 kB

Total Files

5

Last publish

Collaborators

  • featurewan