diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 023231ae2..56011ad8e 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -46,6 +46,7 @@ export default { { text: 'Notifications', link: '/components/notifications' }, { text: 'Share Modal', link: '/components/share-modal' }, { text: 'Analytics', link: '/components/analytics' }, + { text: 'Search dropdown', link: '/components/search-dropdown' }, ], }, ], diff --git a/docs/components/search-dropdown.md b/docs/components/search-dropdown.md new file mode 100644 index 000000000..0d00ffb3c --- /dev/null +++ b/docs/components/search-dropdown.md @@ -0,0 +1,93 @@ +# Search Dropdown + + + + +{{options}} +{{text}} + + + + + +```vue + +``` diff --git a/lib/components/index.js b/lib/components/index.js index 41faa5859..67f1a74c1 100644 --- a/lib/components/index.js +++ b/lib/components/index.js @@ -27,6 +27,7 @@ export { default as ShareModal } from './base/ShareModal.vue' export { default as LineChart } from './base/LineChart.vue' export { default as PieChart } from './base/PieChart.vue' export { default as BarChart } from './base/BarChart.vue' +export { default as SearchDropdown } from './search/SearchDropdown.vue' export { default as Categories } from './search/Categories.vue' export { default as SearchFilter } from './search/SearchFilter.vue' diff --git a/lib/components/search/SearchDropdown.vue b/lib/components/search/SearchDropdown.vue new file mode 100644 index 000000000..0cd05f18e --- /dev/null +++ b/lib/components/search/SearchDropdown.vue @@ -0,0 +1,329 @@ + + + + + + $emit('update:modelValue', '')"> + + + + + + + + + + + + {{ displayName(option.title) }} + + + {{ displayName(option.subtitle) }} + + + + + + + + + + + + +