LiveToast is an Elixir library for Phoenix LiveView that aims to add a supplemental toast system that hooks into the existing Phoenix flash system, but extends it with additional functionality.
Assume that the developer is always running the dev server (mix phx.server) themselves in a separate terminal tab. Do
not offer to start the server for them.
cd demo && mix testassets/js/live_toast/live_toast.tsis the canonical LiveToast client source.priv/static/live_toast.cjs.js,priv/static/live_toast.esm.js,priv/static/live_toast.js, andpriv/static/live_toast.min.js(and their source maps) are published distribution artifacts. When a change affects the client source, runmix assets.build, review the generated output, and commit the updated artifacts with the source change.- The root
assetsproject uses Bun. Demopriv/staticoutput is generated and ignored; do not commit it.
- For a new or materially changed supported API, update the README and add or revise a demo recipe that links to the relevant demo source.
- Add focused coverage in
demo/testfor the supported behavior, including both LiveView and non-LiveView rendering paths when the public component supports both.
- Use Styler/Quokka for Elixir formatting
- Run
mix formatbefore committing