Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
svelte-formula
Advanced tools
Reactive Forms for Svelte
svelte-formula
is a Library for use with Svelte that super-charges your ability to create rich
data-driven for applications.
npm i svelte-formula
All you need is an element container with the Svelte use directive and form input
fields with their name
property set.
Visit the documentation for more details API instructions.
Formula is a library for creating Zero Configuration reactive form components, and fully data-driven applications.
Zero-Configuration means you need nothing more than a well-defined HTML5 form element to have fully reactive stores of data and form states.
Accessing the input requires only setting the name
property, and for validation providing attributes like require
or minlength
. Formula supports single and multi-value inputs across all widely supported HTML inputs and extends them
with checkbox groups and radio groups, and composite fields of values like text or number.
Formula creates a form instance that contains Svelte stores that contain value and validation information, and some additional lifecycle methods that allow your to dynamically add and remove customisations, and reset or destroy the form. It also attempts to apply ARIA attributes to help with accessibility.
Formula also supports a bunch of powerful options that provide additional validation, enrichment and custom messages.
For example with the enrich
option
and enrichment
store you can provide functions that
calculate additional computed values based on user input - for example calculating a password strength, or the length of
text a user has entered. These are useful.
Validations can be provided at the form and field level, and integrate with in-built browser validations to provide native messages, which can be customised for localisation.
Beaker take Formula and adds another layer for working with collections of data.
Using row-based input you can create full form instances per row that are also fully reactive and feed into Beaker's collection store.
Beaker also provides methods for setting, adding and removing items from the in-built stores, when can be used with
Svelte's {#each}{/each}
blocks to create a re-usable template in the component
With this you can build applications such as multi-row editable tables or lists. See the documentation for more details and examples.
[0.9.3] - 2021-03-11
novalidate
it set on form and there is a submissionFAQs
Reactive Forms for Svelte
The npm package svelte-formula receives a total of 96 weekly downloads. As such, svelte-formula popularity was classified as not popular.
We found that svelte-formula demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.