cf-react-toast

1.0.3 • Public • Published

cf-react-toast

Made with create-react-library

NPM JavaScript Style Guide

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

Readme

Keywords

none

Package Sidebar

Install

npm i cf-react-toast

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

6 MB

Total Files

7

Last publish

Collaborators

  • conciseflow