docs: import $ui from useNuxtApp

This commit is contained in:
Benjamin Canac
2024-08-04 21:50:38 +02:00
parent 7e37668940
commit 606c7b6567
3 changed files with 4 additions and 0 deletions

View File

@@ -25,6 +25,8 @@
</template>
<script setup lang="ts">
const { $ui } = useNuxtApp()
const links = [{
icon: 'i-simple-icons-figma',
label: 'Figma Kit',

View File

@@ -54,6 +54,7 @@ defineProps<{
}>()
const route = useRoute()
const { $ui } = useNuxtApp()
const { metaSymbol } = useShortcuts()
const nav = inject<Ref<NavItem[]>>('navigation')

View File

@@ -443,6 +443,7 @@ const sectionRef = ref()
const demoRef = ref(null)
const start = ref(0)
const { $ui } = useNuxtApp()
const { height } = useElementSize(demoRef)
const { top } = useElementBounding(sectionRef)
const { y } = useWindowScroll()