All files / apps/developer-portal/layers/wiki/app/components WikiToc.vue

100% Statements 1/1
100% Branches 1/1
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27    10x                                                
<template>
    <aside
        v-if="links.length > 0"
        class="hidden w-56 shrink-0 overflow-x-hidden overflow-y-auto xl:block"
    >
        <!-- The stock root's negative margins and top padding assume a full-page docs layout -->
        <UContentToc
            :links
            highlight
            :ui="{
                root: 'static mx-0 max-h-none bg-transparent px-0 backdrop-blur-none sm:mx-0 sm:px-0',
                container: 'lg:py-0',
            }"
        />
    </aside>
</template>
 
<script setup lang="ts">
import type { TocLink } from "@nuxt/content";
 
interface Props {
    links: TocLink[];
}
 
const { links } = defineProps<Props>();
</script>