Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@felte/element
Advanced tools
Felte is an extensible form library originally bult for Svelte. This package aims to provide Felte's functionality using a custom element. Felte, on its most simple form, only requires you to provide a <form>
element to it in order to work.
WARNING: This package is under development, things might break on updates and documentation is almost non-existent besides this README.
name
attribute is necessary).reporter
packages.Using Svelte as an example:
<script type="module">
import '@felte/element/felte-form';
const felteForm = document.querySelector('felte-form');
felteForm.configuration = {
onSubmit: async (values) => {
/* call to an api */
},
};
</script>
<felte-form>
<form>
<input type="text" name="email" />
<input type="password" name="password" />
<input type="submit" value="Sign in" />
</form>
</felte-form>
npm install --save @felte/element
# Or if you use yarn
yarn add @felte/element
To learn more about how to use felte
to handle your forms, check the official documentation.
This package should work nicely with any framework. Specially if you're using the prepareForm
method of creating your form. It also works really nice with frameworks that set attributes as properties or frameworks that provide syntax to set values to properties of elements instead of attributes.
FAQs
An extensible form library that can be used as a custom element
The npm package @felte/element receives a total of 38 weekly downloads. As such, @felte/element popularity was classified as not popular.
We found that @felte/element demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.