1. vue-toc
A table of contents component for vue.js
vue-toc
Package: vue-toc
Created by: isy
Last modified: Mon, 23 May 2022 19:48:29 GMT
Version: 0.0.2
License: MIT
Downloads: 33,753
Repository: https://github.com/isy/vue-toc

Install

npm install vue-toc
yarn add vue-toc

vue-toc Build Status

Vue.js component that automatically generates a table of contents.

Install

$ npm install vue-toc

Register the component

 import Vue from 'vue'
import VueToc from 'vue-toc'

Vue.component('vue-toc', VueToc)

Options

key description default val
target Specify the location of the heading none String
h2Class Specify css class in table of contents(h2) toc-2 String
h3Class Specify css class in table of contents(h3) toc-3 String

※Please be sure to attach an ID to the h2 and h3 tags for in-page links

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code