woutdp / live_svelte

Svelte inside Phoenix LiveView with seamless end-to-end reactivity
https://hexdocs.pm/live_svelte
MIT License
1.01k stars 37 forks source link

How to treat Forms? #128

Open cvkmohan opened 1 month ago

cvkmohan commented 1 month ago

@woutdp - One request. Can you showcase one example of how to deal with Forms ? I mean typical Form handling in LiveView is well-defined and there are ample resources. Assuming, I want to have a form in Svelte - maybe using https://github.com/svecosystem/formsnap - how does the communication happen both ways. That gives us access to the rich Svelte UI libraries, Shadcn etc.

t1m0t commented 3 weeks ago

I believe you would pass the data through the live socket instead of doing a post request, right?