svelte-use-local-storage

Usage

This action is used per element instead of per form. A per form action might be introduced later

<script>
import storage from 'svelte-use-local-storage'
</script>

<form on:submit={handleSubmit}>
        <input type="text" name="name" use:storage={"name"} />
        <button type="button">Create</button>
</form>

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes