From a4a717f4e0ee1749f3b6bf4b4118557f85150e61 Mon Sep 17 00:00:00 2001 From: WangYK <62269186+AnotiaWang@users.noreply.github.com> Date: Tue, 21 Nov 2023 19:22:25 +0800 Subject: [PATCH] feat: inherit attrs to `Textarea` + fix `Input` label color (#245) * feat: add more attributes to Textarea * refactor: use `inheritAttrs` option to simplify code * fix: `Input` label color in dark mode --- docs/components/textarea.md | 58 ++++++++++++++++++- .../textarea/examples/FwbTextareaExample.vue | 2 +- .../examples/FwbTextareaExampleComment.vue | 7 ++- .../examples/FwbTextareaExampleDisabled.vue | 36 ++++++++++++ .../examples/FwbTextareaExampleFormId.vue | 36 ++++++++++++ .../FwbInput/composables/useInputClasses.ts | 2 +- src/components/FwbTextarea/FwbTextarea.vue | 24 ++++---- 7 files changed, 147 insertions(+), 18 deletions(-) create mode 100644 docs/components/textarea/examples/FwbTextareaExampleDisabled.vue create mode 100644 docs/components/textarea/examples/FwbTextareaExampleFormId.vue diff --git a/docs/components/textarea.md b/docs/components/textarea.md index e2ba755..92dbd6e 100644 --- a/docs/components/textarea.md +++ b/docs/components/textarea.md @@ -1,6 +1,8 @@ # Vue Textarea - Flowbite @@ -24,7 +26,7 @@ Get started with the default example of a textarea component below. v-model="message" :rows="4" label="Your message" - placeholder="Write you message..." + placeholder="Write your message..." /> @@ -50,7 +52,7 @@ Most often the textarea component is used as the main text field input element i :rows="3" custom label="Your message" - placeholder="Write you message..." + placeholder="Write your message..." > diff --git a/docs/components/textarea/examples/FwbTextareaExampleComment.vue b/docs/components/textarea/examples/FwbTextareaExampleComment.vue index 620808b..921618a 100644 --- a/docs/components/textarea/examples/FwbTextareaExampleComment.vue +++ b/docs/components/textarea/examples/FwbTextareaExampleComment.vue @@ -5,7 +5,7 @@ :rows="3" custom label="Your message" - placeholder="Write you message..." + placeholder="Write your message..." >