diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index 165dd86106..68ecaca004 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -677,6 +677,27 @@ Inputs that work together can use `bind:group`. ``` +--- + +The Svelte compiler must be able to detect the `value` attribute for `bind:group` to work properly. + +This example uses spread attributes to set the `value` of each checkbox, but it will *not* work since the compiler can not see the `value` attribute. + +```sv + + +{#each tortillaInputs as props} + +{/each} +``` + #### [bind:this](bind_element) ```sv