diff --git a/playground/pages/input-menu.vue b/playground/pages/input-menu.vue index 638c0fbb..7a302f01 100644 --- a/playground/pages/input-menu.vue +++ b/playground/pages/input-menu.vue @@ -50,7 +50,11 @@ const { data: users, pending } = await useFetch('https://jsonplaceholder.typicod - + + + + > + +
{ type InputMenuVariants = VariantProps -export interface InputMenuProps extends Omit, UseComponentIconsProps { +export interface InputMenuProps extends Omit, 'asChild' | 'dir' | 'filterFunction' | 'displayValue' | 'multiple'>, UseComponentIconsProps { id?: string type?: InputHTMLAttributes['type'] /** The placeholder text when the input is empty. */ @@ -67,9 +67,8 @@ export type InputMenuEmits = ComboboxRootEmits type SlotProps = (props: { item: T, index: number }) => any export type InputMenuSlots = { - 'leading'(): any - 'default'(): any - 'trailing'(): any + 'leading'(props: { modelValue: T, open: boolean }): any + 'trailing'(props: { modelValue: T, open: boolean }): any 'empty'(props: { searchTerm?: string }): any 'item': SlotProps 'item-leading': SlotProps @@ -165,6 +164,7 @@ onMounted(() => {