UltraCakeBakery / kit-forms

Make complex <form>'s easy to make and validate in SvelteKit.
3 stars 2 forks source link

progressively enhanced forms #42

Open UltraCakeBakery opened 1 year ago

UltraCakeBakery commented 1 year ago

We should support the use:enhance function from sveltekit by extending it. I also want to make it so that once a form gets enhanced, it (optionally!) tells the browser to leave form validation up to the javascript code. In other words: when progressively enhanced, no native browser modals and popups and stuff.

vanillacode314 commented 1 year ago

why is this not trivial? why can we just pass along the use:enhance to the form element?