live_toast
live_toast copied to clipboard
A beautiful drop-in replacement for the Phoenix Flash system.
Any plans for adding the ability to have an infinite duration or a disabled duration configuration? The idea that the toast would have to be manually dismissed and wouldn't disappear...
My current toasts show up in the bottom centre. Obviously this isn't super desirable if you have multiple toasts, though my project doesn't need them (I'm more after the auto-hiding).
- `@doc` examples aren't 4-space indented therefore are'nt rendering as code - Code links (``) are broken
@srcrip I test locally with a project of mine and it works as expected. Please let me know if you don't like the direction of the solution and I can...
When setting a toast in a controller, it appears that the duration is automatically set to 0 in `LiveToast.Components.flashes`. Could the ability to set options be added?
This is a WIP, but mainly I was trying to have a completely custom component for all flashes/toasts. I realized that the DX was weird because I had to pass...
It would be nice if we could override the classes for the button markup, similar to how we are able to set the `toast_class_fn`. In my case, I'm setting dark...
Based on changes from the discussion at https://elixirforum.com/t/delaying-liveview-js-commands-avoid-quick-flash-of-trying-to-reconnect/64035/9?u=sevensidedmarble This adds a 3s delay before showing the server-error toast, giving the client a chance to reconnect before showing it.
Add the ability to provide translations, using gettext: - Something went wrong - We can't find the internet - Info - Error - Attempting to reconnect - Hang in there...
Here's a stab at documenting how to wrap data in the action callback. Closes #6