Handling forms
Is there a popular forms library between Solid js'ers?
What do you guys use?
9 Replies
There are a few. Felte would probably be the first I would try if I wouldn't directly go for the built-in forms in solid-start.
+1 for Felte
Modular Forms is another option: https://modularforms.dev/
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I'm using a
<textarea>
element with Modular Forms in a project. Since the functionality is very similar to <input>
, it should work. Let me know if you run into a problem.Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
How do you access e.g. error messages and display them in the form? Via URL search parameters?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
This is browser specific. In Firefox the calendar unfurls on click on the input, in Chrome only on click on the icon (and in both with keyboard navigation when the focus is in the input and hitting
space
).
So this is no problem of modularforms
, it just handles validation for you and some special form cases, e. g. nested forms.