Skip to content

Commit 94cfdbc

Browse files
committed
docs: fix snippet
closes #8817
1 parent 5ddf4ca commit 94cfdbc

File tree

1 file changed

+2
-1
lines changed
  • documentation/tutorial/06-bindings/05-textarea-inputs

1 file changed

+2
-1
lines changed

documentation/tutorial/06-bindings/05-textarea-inputs/text.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ title: Textarea inputs
44

55
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:
66

7+
<!-- prettier-ignore -->
78
```svelte
8-
<textarea bind:value />
9+
<textarea bind:value={value} />
910
```
1011

1112
In cases like these, where the names match, we can also use a shorthand form:

0 commit comments

Comments
 (0)