svelte-use-persist is a Svelte action that persists form values or individual inputs' values to localStorage and loads them back when the form or input is loaded again.
Fill out any of the fields below and refresh the page. Their values will be restored!
Saving inputs outside of a form
This action also works for inputs that are not part of a form. Just make sure to give them a name