Introducing Live Toast: An Enhanced Toast Component for Phoenix LiveView

19
clicks
Introducing Live Toast: An Enhanced Toast Component for Phoenix LiveView

Source: elixirforum.com

Type: Discussion

Live Toast is a new component designed to replace the existing flash system in Phoenix LiveView, allowing developers to send multiple toast messages of the same severity. Inspired by the React toast component Sonner, Live Toast is still in early development but features a solid API. The creator acknowledges limitations in the original Phoenix system, such as the restriction of a single toast per severity. Live Toast enables incremental transition from using flash messages to toasts while maintaining the same visual style. The project is open to feedback and is actively being improved, with community contributions welcomed through GitHub issues and pull requests. The response from early users has been positive, especially praising its ease of use and the demo page that enhances the LiveView ecosystem.

© HashMerge 2024