diff --git a/src/components/input/MultiSelect.stories.ts b/src/components/input/MultiSelect.stories.ts index bc304b990..e4b41d68f 100644 --- a/src/components/input/MultiSelect.stories.ts +++ b/src/components/input/MultiSelect.stories.ts @@ -1,9 +1,23 @@ import type { Meta, StoryObj } from '@storybook/vue3-vite' +import type { MultiSelectProps } from 'primevue/multiselect' import { ref } from 'vue' import MultiSelect from './MultiSelect.vue' -const meta: Meta = { +// Combine our component props with PrimeVue MultiSelect props +// Since we use v-bind="$attrs", all PrimeVue props are available +interface ExtendedProps extends Partial { + // Our custom props + label?: string + showSearchBox?: boolean + showSelectedCount?: boolean + showClearButton?: boolean + searchPlaceholder?: string + // Override modelValue type to match our Option type + modelValue?: Array<{ name: string; value: string }> +} + +const meta: Meta = { title: 'Components/Input/MultiSelect', component: MultiSelect, tags: ['autodocs'], diff --git a/src/components/input/MultiSelect.vue b/src/components/input/MultiSelect.vue index f6c3dd6cd..1dbb53b46 100644 --- a/src/components/input/MultiSelect.vue +++ b/src/components/input/MultiSelect.vue @@ -1,10 +1,18 @@