1.0.3 • Published 2 years ago

react-toast-k-lib v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Toast-lib

Installation

npm

npm install react-toast-k-lib

yarn

yarn add react-toast-k-lib

Demo

Open demo

Usage

import React from 'react';

import { ToastProvider, toastService } from 'react-toast-k-lib';

const App = () => {
  const containerRef = useToastContainer();

  const handleClick = () => {
    toastService.addToast({
      type: 'Info',
      description: 'Toast Example'
    })
  }
  };

  return (
    <div>
      <button onClick={handleClick}>Show toast</button>
      <ToastProvider />
    </div>
  );
};
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago