Best Approach to Show and Hide Alert (DaisyUI or Tailwind)

Hi,
I want to show alerts (DaisyUI or Tailwind) in some cases (success, warning or error).
What’s the best approach?
Use context to control the list to show (can have more than one alert). When user clicks to dismiss I will call the context to hide the respective Alert.
Is this a good option?

Have you looked at the toast notification implementation that RedwoodJS has built-in? You could either use it directly or look at how they implemented it to see if could inspire a more custom solution.