live_toast icon indicating copy to clipboard operation
live_toast copied to clipboard

Support for JS

Open RodolfoSilva opened this issue 10 months ago • 1 comments

Sometimes, we need to display a toast on the client side. Will this be possible with live toast? Something like: LiveToast.JS.put_toast

JS.dispatch("to_clipboard", to: "#foo")
|> LiveToast.JS.put_toast(:info, "Data copied to the clipboard.")
|> JS.hide(to: "#modal")

RodolfoSilva avatar Feb 19 '25 16:02 RodolfoSilva

Yes, @RodolfoSilva if you'd like to pull my brainch in #33 and test it in your use case I would really appreciate it. Someone else testing would give me a lot more confidence that it's ready to send out.

srcrip avatar Feb 25 '25 19:02 srcrip