You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/documentation/tutorial/06-bindings/05-textarea-inputs/text.md

450 B

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:

<textarea bind:value={value} />

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

<textarea bind:value />

This applies to all bindings, not just textareas.