Gathering detailed insights and metrics for @svelio/svelte-simple-forms
Gathering detailed insights and metrics for @svelio/svelte-simple-forms
npm install @svelio/svelte-simple-forms
Typescript
Module System
Node Version
NPM Version
71
Supply Chain
98.2
Quality
75.4
Maintenance
100
Vulnerability
99.6
License
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
1,123
Last Day
1
Last Week
1
Last Month
18
Last Year
140
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
@svelio/svelte-simple-forms@1.0.0
Unpacked Size
18.80 kB
Size
5.59 kB
File Count
21
NPM Version
8.19.2
Node Version
16.18.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
0%
1
Compared to previous week
Last Month
5.9%
18
Compared to previous month
Last Year
-56%
140
Compared to previous year
1
28
Simple forms for svelte! Heavily inspired by mantine-forms.
You are welcome to test the library, and support it by reporting bugs and suggesting features.
But please be aware that the API is not stable yet, and it may change in the future.
Do not expect a stable release before version 2.0.0.
1npm install --save-dev @svelio/svelte-simple-forms
1yarn add -D @svelio/svelte-simple-forms
1<script> 2 import { createForm } from '@svelio/svelte-simple-forms'; 3 4 const { getInput, getForm, values } = createForm({ 5 initialValues: { 6 name: '', 7 email: '' 8 } 9 }); 10</script> 11 12<form use:form={$values}> 13 <input use:getInput={'name'} /> 14 <input use:getInput={'email'} /> 15 16 <button type="submit">Submit</button> 17</form> 18 19<p>Name: {$values.name}</p> 20<p>Email: {$values.email}</p>
1<script> 2 import { createForm } from '@svelio/svelte-simple-forms'; 3 4 const { getInput, getForm, values, errors } = createForm({ 5 initialValues: { 6 name: '', 7 email: '' 8 }, 9 validate: { 10 name: (value) => !value && 'Name is required', 11 email: (value) => !value && 'Email is required' 12 } 13 }); 14</script> 15 16<form use:form={$values}> 17 <input use:getInput={'name'} /> 18 {#if $errors.name} 19 <p>{$errors.name}</p> 20 {/if} 21 22 <input use:getInput={'email'} /> 23 {#if $errors.email} 24 <p>{$errors.email}</p> 25 {/if} 26 27 <button type="submit">Submit</button> 28 29 <p>Name: {$values.name}</p> 30 <p>Email: {$values.email}</p> 31</form>
No vulnerabilities found.
No security vulnerabilities found.