You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/tutorial/06-bindings/05-textarea-inputs/text.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,9 @@ title: Textarea inputs
4
4
5
5
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:
6
6
7
+
<!-- prettier-ignore -->
7
8
```svelte
8
-
<textarea bind:value />
9
+
<textarea bind:value={value} />
9
10
```
10
11
11
12
In cases like these, where the names match, we can also use a shorthand form:
0 commit comments