diff --git a/playground/pages/input-menu.vue b/playground/pages/input-menu.vue
index 0b51d402..2b71cf94 100644
--- a/playground/pages/input-menu.vue
+++ b/playground/pages/input-menu.vue
@@ -9,6 +9,7 @@ const fruits = ['Apple', 'Banana', 'Blueberry', 'Grapes', 'Pineapple']
const vegetables = ['Aubergine', 'Broccoli', 'Carrot', 'Courgette', 'Leek']
const items = [[{ label: 'Fruits', type: 'label' }, ...fruits], [{ label: 'Vegetables', type: 'label' }, ...vegetables]]
+const selectedItems = ref([fruits[0], vegetables[0]])
const statuses = [{
label: 'Backlog',
@@ -48,11 +49,11 @@ const { data: users, pending } = await useFetch('https://jsonplaceholder.typicod
+
-
-
+
+
+
+
diff --git a/playground/pages/input.vue b/playground/pages/input.vue
index ff3b4c00..b58b8c5a 100644
--- a/playground/pages/input.vue
+++ b/playground/pages/input.vue
@@ -18,9 +18,8 @@ const sizes = Object.keys(theme.variants.size)
-
-
+
-
+
-
diff --git a/playground/pages/select.vue b/playground/pages/select.vue
index 7f5efe47..433215b8 100644
--- a/playground/pages/select.vue
+++ b/playground/pages/select.vue
@@ -49,7 +49,6 @@ const { data: users, pending } = await useFetch('https://jsonplaceholder.typicod
-
diff --git a/src/runtime/components/InputMenu.vue b/src/runtime/components/InputMenu.vue
index 41a70dfc..ef45a6ef 100644
--- a/src/runtime/components/InputMenu.vue
+++ b/src/runtime/components/InputMenu.vue
@@ -27,7 +27,7 @@ export interface InputMenuItem extends Pick {
type InputMenuVariants = VariantProps
-export interface InputMenuProps extends Omit, 'asChild' | 'dir' | 'filterFunction' | 'displayValue' | 'multiple'>, UseComponentIconsProps {
+export interface InputMenuProps extends Omit, 'asChild' | 'dir' | 'filterFunction' | 'displayValue'>, UseComponentIconsProps {
id?: string
type?: InputHTMLAttributes['type']
/** The placeholder text when the input is empty. */
@@ -48,6 +48,12 @@ export interface InputMenuProps extends Omit, 'asChild'
* @defaultValue `appConfig.ui.icons.check`
*/
selectedIcon?: string
+ /**
+ * The icon displayed to delete a tag.
+ * Works only when `multiple` is `true`.
+ * @defaultValue `appConfig.ui.icons.close`
+ */
+ deleteIcon?: string
content?: Omit
arrow?: boolean | Omit
portal?: boolean
@@ -74,12 +80,14 @@ export type InputMenuSlots = {
'item-leading': SlotProps
'item-label': SlotProps
'item-trailing': SlotProps
+ 'tags-item-text': SlotProps
+ 'tags-item-delete': SlotProps
}