Enhanced Forms in Svelte

From the SvelteKit cheat sheet ยท Form Actions ยท verified Nov 2026

Enhanced Forms

Client-side progressive enhancement

javascript
<script>
  import { enhance } from '$app/forms';
</script>

<form method="POST" use:enhance>
  <input name="title" />
  <button>Submit</button>
</form>
โšก use:enhance for progressive enhancement
๐Ÿ“Œ use:enhance only works on forms with method="POST"
๐ŸŽฏ Optimistic UI updates without waiting
๐Ÿ”„ update() accepts reset, refreshAll and navigate options

Continue with SvelteKit

Save the full cheat sheet or work through every related task.

More Svelte tasks

Back to the full SvelteKit cheat sheet