docs: fix snippet

closes #8817
pull/8819/head
Simon Holthausen 1 year 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:
<!-- prettier-ignore -->
```svelte
<textarea bind:value />
<textarea bind:value={value} />
```
In cases like these, where the names match, we can also use a shorthand form:

Loading…
Cancel
Save