svelte-forms
svelte-forms copied to clipboard
{form} contradicts with html <form> element tag
When the <input> fields are not wrapped in <form> browser warns about missing form tag like
[DOM] Password field is not contained in a form
when <form> tag is used, Svelte warns about:
Plugin svelte: <form> will be treated as an HTML element unless it begins with a capital letter
Please suggest a way to fix/workaround this.
I just import form with an alias:
import { field, form as svelteForm } from 'svelte-forms';
I find the need to rename an import is counter to the minimal approach of Svelte. I would prefer having the form just called svelteForm in the library.
Of course this would break backwards compatibility... But perhaps a thing to consider for v3?