diff --git a/docs/.vitepress/theme/components/icons/IconsCategoryOverview.vue b/docs/.vitepress/theme/components/icons/IconsCategoryOverview.vue index ddf8de4dc..c91c10787 100644 --- a/docs/.vitepress/theme/components/icons/IconsCategoryOverview.vue +++ b/docs/.vitepress/theme/components/icons/IconsCategoryOverview.vue @@ -1,5 +1,5 @@ @@ -62,6 +66,11 @@ const activeIcon = computed(() => ref="searchInput" /> + ​ diff --git a/docs/.vitepress/theme/components/icons/IconsOverview.vue b/docs/.vitepress/theme/components/icons/IconsOverview.vue index 6e08ec23a..44c42a4f2 100644 --- a/docs/.vitepress/theme/components/icons/IconsOverview.vue +++ b/docs/.vitepress/theme/components/icons/IconsOverview.vue @@ -1,5 +1,5 @@ @@ -77,6 +81,11 @@ watch(searchQueryThrottled, (searchString) => { class="input-wrapper" /> + +import { ref } from 'vue' +import { bird } from '../../../data/iconNodes' +import createLucideIcon from 'lucide-vue-next/src/createLucideIcon' +import { useEventListener } from '@vueuse/core' +import VPButton from 'vitepress/dist/client/theme-default/components/VPButton.vue' + +defineProps<{ + searchQuery: string +}>() + +defineEmits(['clear']) + +const birdIcon = ref() +const Bird = createLucideIcon('bird', bird) +const flip = ref(false) + +useEventListener(document, 'mousemove', (mouseEvent) => { + const { width, height, x, y } = birdIcon.value.getBoundingClientRect() + + const centerX = (width / 2) + x + + flip.value = mouseEvent.x < centerX +}) + + + + + + + + No icons found for '{{ searchQuery }}' + + + + + +