Toc

Indexing can be created using Toc

On this page

Install usebootstrap-docs

Toc is an experimental component included in the usebootstrap-docs module.

Module installation is required to run

Installation of use-bootstrap-docs NPM Package

npx nuxi@latest module add usebootstrap-docs

Example

The index is created by specifying the element of the index to be created in the selectorattribute.

It is for <h2> or later and must start with <h2>.

On this page
vue
<template>
  <Toc selector="#bd-content" />
</template>