Open khalibloo opened 1 year ago
Hey, thank you for this! I'll take some time to check it out, but thank you for taking this initiative!
@khalibloo, I will take some time to dig through it, but here are some quick questions:
{#if}
statement removes them from the DOM, based on the current step?@khalibloo, I will take some time to dig through it, but here are some quick questions:
* How is i18n solved for validation messages? * What validation library is used? Can I use Zod, or other TypeScript validation libraries? * If it's a flexible solution, how much copy-paste boilerplate is needed? * How can it handle multi-step forms? Do the inputs have to be in the DOM all the time and hidden with CSS, or is it OK if an `{#if}` statement removes them from the DOM, based on the current step?
Great to have another pair of eyes on it. It mostly mimic's mantine's useForm
. Do take a look at this file to get an idea of its usage https://github.com/svelteuidev/svelteui/pull/428/files#diff-a0f3dafbe6885a5e04e3be1825d4ccc960adbeceb5933503b58142a31e1ba7b7
Edit: I tested the 4th item, and it works even when the inputs are removed from the DOM. Both in mantine form and in this implementation.
Description
Ported mantine form into svelte. The useForm hook was converted into a svelte Form component to maintain reactivity.
Closes #369
Features
Before submitting the PR, please make sure you do the following
[@svelteui/core]
,[@svelteui/actions]
,[@svelteui/motion]
,[@svelteui/core]
,[core]
, or[docs]
.yarn lint
andyarn test
or just runyarn prepush
.