docs: fix snippet

closes #8817
pull/8819/head
Simon Holthausen 2 years ago
parent 5ddf4ca779
commit 94cfdbcee1

@ -4,8 +4,9 @@ title: Textarea inputs
The `<textarea>` element behaves similarly to a text input in Svelte — use `bind:value` to create a two-way binding between the `<textarea>` content and the `value` variable: The `<textarea>` element behaves similarly to a text input in Svelte — use `bind:value` to create a two-way binding between the `<textarea>` content and the `value` variable:
<!-- prettier-ignore -->
```svelte ```svelte
<textarea bind:value /> <textarea bind:value={value} />
``` ```
In cases like these, where the names match, we can also use a shorthand form: In cases like these, where the names match, we can also use a shorthand form:

Loading…
Cancel
Save