From f68fc1367019e09c23cd63cf54afbf02c5e8ff6c Mon Sep 17 00:00:00 2001 From: letoast Date: Mon, 9 Jan 2023 23:06:57 +0100 Subject: [PATCH] feat: add on:input to textarea --- src/lib/forms/Textarea.svelte | 1 + src/routes/forms/textarea.md | 17 +++++++++-------- src/routes/props/FooterCopyright.json | 2 +- src/routes/props/NavUl.json | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/lib/forms/Textarea.svelte b/src/lib/forms/Textarea.svelte index 8524fba257..fdee535d91 100644 --- a/src/lib/forms/Textarea.svelte +++ b/src/lib/forms/Textarea.svelte @@ -59,6 +59,7 @@ on:click on:contextmenu on:focus + on:input on:keydown on:keypress on:keyup diff --git a/src/routes/forms/textarea.md b/src/routes/forms/textarea.md index 875d574184..08f04901da 100644 --- a/src/routes/forms/textarea.md +++ b/src/routes/forms/textarea.md @@ -10,7 +10,7 @@ description: Use the textarea component as a multi-line text field input and use ``` @@ -48,7 +48,7 @@ Get started with the default example of a textarea component below. ```svelte example @@ -61,7 +61,7 @@ If you want to add other actions as buttons alongside your textarea component, s ```svelte example
@@ -83,13 +83,14 @@ If you want to add other actions as buttons alongside your textarea component, s
``` + Most often the textarea component is used as the main text field input element in comment sections. Use this example to also apply a helper text and buttons below the textarea itself. ```svelte example class="space-y-4"
@@ -113,7 +114,7 @@ If you want to build a chatroom component you will usually want to use a textare ```svelte example class="space-y-4" @@ -140,9 +141,8 @@ If you want to build a chatroom component you will usually want to use a textare The component has the following props, type, and default values. See types page for type information. - - + @@ -152,6 +152,7 @@ The component has the following props, type, and default values. See