cf-react-toast
v1.0.3
Published
Made with create-react-library
Downloads
2
Readme
cf-react-toast
Made with create-react-library
Install
npm install --save cf-react-toast
Usage
import React from 'react'
import { toast } from 'cf-react-toast'
import 'cf-react-toast/dist/index.css'
const App = () => {
return <div>
<button onClick={() => toast({ type: 'success',message:"Success message" })} className=''>Show success </button>
<button onClick={() => toast({ type: 'error',message:"Error message"})} className=''>Show error </button>
<button onClick={() => toast({ type: 'info' ,message:"Info message"})} className=''>Show info </button>
<button onClick={() => toast({ type: 'warning',message:"Warning message"})} className=''>Show warning </button>
</div>;
};
export default App;
License
MIT © Arnoldkhosa