Skip to content

mugendi/svelte-former

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Svelte Former

github-license github-stars github-watchers github-forks

This is a svelte from component that handles:

  • Form creation
  • Form validation using Fastest Validator
  • Dynamic fields triggered by values in other fields
  • Rich text (WISIWYG) editor via SunEditor
  • Autocomplete controls with fuzzy search support

Since svelte is the Magical disappearing framework that compiles into framework-less vanilla JavaScript, this component can also be used with ordinary JavaScript.

Alt

Why another form component?

I totally love fastest-validator especially because it is blazing fast and super easy to use. I wanted to create a forms component that would also be:

  • Super fast
  • Simple to use
  • Ability to add custom validators with ease

I used and loved Svelte Forms. However one of the features I wanted the most, and found it missing in other libraries is Dynamic Fields. Svelte-Former comes with the ability to bind two fields together so that changing the value in one field automatically updates another field. A good example is when creating country and city select boxes where selecting a country updates all the cities, say via an API. Check out the Demo

Screenshot

About

Svelte Form Element with easy validation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published