Svelte and SvelteKit 5 · Runes (reactivity)

Allow two-way binding of a prop

Mark a prop $bindable so a parent can bind to it with bind:value.

let { value = $bindable("") } = $props();

Official Svelte and SvelteKit 5 documentation

More runes (reactivity) commands

All runes (reactivity) commands · Svelte and SvelteKit 5 cheatsheet

Was this page helpful?