Hi This is a feature request, Can you please allow for toast title parameter to be added to this package? Thanks
Hey @kenshinman,
You can pass a react component, more detail here.
import React from 'react';
import { ToastContainer, toast } from "react-toastify";
const Msg = ({ closeToast }) => (
<div>
<h2> My title</h2>
<p> Some test </p>
</div>
)
const App = () => (
<div>
<button onClick={() => toast(<Msg />)}>notify</button>
<ToastContainer />
</div>
);
Thanks @fkhadra. I later found this in the doc. Didn't know it had been updated. Been a while since I used it
Most helpful comment
Thanks @fkhadra. I later found this in the doc. Didn't know it had been updated. Been a while since I used it