NuxtLegoNuxtLego

Table of Contents

Primitive component to build your own table of content easily.

Anatomy

<template>
  <LegoToc>
    <template #title />

    <LegoTocLinks v-slot="{ link }" :links="links" />
  </LegoToc>
</template>

API Reference

Wrapper that provide the information required for the child component.

PropDefaultTypesDescription
links-Link[]Links from Nuxt Content's toc