About 2 results
Open links in new tab
  1. toast/src/useToasts.ts at master · ryfylke-react-as/toast

    import { useEffect, useRef, useState } from "react"; import { ToastEventType, subscribeToToasts } from "./toast"; export type UseToastsOpts<T> = { onToastAdded?: (toast: T & { id: string }) => void; …

  2. toast/src/components/ToastProvider.tsx at master - GitHub

    import React, { ReactElement } from "react"; import ReactDOM from "react-dom"; import { useToasts } from "../useToasts"; export type RenderToastsProps<T> = { toasts: (T & { id: string }) []; …