From 122388cbe343c51cf0aa7f8c71ea2f7f69961629 Mon Sep 17 00:00:00 2001 From: Daniel Fahl Date: Mon, 13 Jan 2025 06:56:49 +0100 Subject: [PATCH] chore: add prop, block toggling when disabled, ensure readability, fix linting errors --- docs/components/dropdown.md | 5 +++-- src/components/FwbDropdown/FwbDropdown.vue | 10 ++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/components/dropdown.md b/docs/components/dropdown.md index 18b72b23..49898a9b 100644 --- a/docs/components/dropdown.md +++ b/docs/components/dropdown.md @@ -247,10 +247,10 @@ Please note that this has to be manually implemented when using a custom trigger ```vue @@ -327,6 +327,7 @@ import { FwbDropdown, ListGroup, ListGroupItem } from 'flowbite-vue' | placement | `DropdownPlacement` | `'bottom'` | | text | `string` | `''` | | color | `ButtonVariant` | `'default'` | +| disabled | `boolean` | `false` | | transition | `string` | `''` | | closeInside | `boolean` | `false` | | alignToEnd | `boolean` | `false` | diff --git a/src/components/FwbDropdown/FwbDropdown.vue b/src/components/FwbDropdown/FwbDropdown.vue index cc6f89de..b8af8fcd 100644 --- a/src/components/FwbDropdown/FwbDropdown.vue +++ b/src/components/FwbDropdown/FwbDropdown.vue @@ -6,7 +6,10 @@
- + {{ text }}