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
- Component skeleton
- Reactive state
- Derived values
- Side effects
- Receive props
- Share state between components
All runes (reactivity) commands · Svelte and SvelteKit 5 cheatsheet