React Strawberry Toast
  • Getting Started
  • Guides
      Show ToastCustomizeStylingPositioningMulti ContainerHeadless Hook
  • API
      toastContainertoastuseToasts
  • Getting Started
  • Guides
      Show ToastCustomizeStylingPositioningMulti ContainerHeadless Hook
  • API
      toastContainertoastuseToasts

Getting Started

npm


npm i react-strawberry-toast

yarn


yarn add react-strawberry-toast

pnpm


pnpm i react-strawberry-toast

usage

import { ToastContainer, toast } from 'react-strawberry-toast';
import 'react-strawberry-toast/dist/style.css';
  
function App() {
  const click = () => {
    toast('hello strawberry toast');
  };
      
  return (
    <>
      <ToastContainer />
      <button type='button' onClick={click}>click</button>
    </>
  );
}
@Created by dkpark10