vue-toc

A table of contents component for vue.js
274,853 7
Install
npm install vue-toc
Latest Version:0.0.2
Vue:2
License:MIT
Last Updated:Jan 6, 2023
Links: GitHub  ·  npm
Maintainer: isy0927

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 Packages

@vesperjs/vue

This is Vesper for Vue.js.

8,552 1
@wzpo/md-ui

Another Momentum UI framework for Vue.js applications

2,054
vuenilla

Unstyled Vue.js component library.

1,552 2
toc-creator

Create a draggable table of contents for your articles

314 1
vue-awesome

Font Awesome component for Vue.js, using inline SVG.

510,216 2,422

Version History

Version Released License
0.0.2 MIT
0.0.1 MIT