using tailwindui notification components
how to use the tailwindui notification to be use other components(passing message and show boolean)
3 Replies
Read reactjs doc on Props
This seems like it does what you're asking for
Just call the component like this
but when i close it nothing happen
Yes because the show is fixed
You need to use state to set the show example
So look for how to manipulate your useState your fine
You can use useEffect to do this
So when the notify is triggered use timer and then clean after your self