Skip to content

Latest commit

 

History

History

docs-toc-ui

README.md

@univerjs/docs-toc-ui

npm version license downloads

@univerjs/docs-toc-ui adds Ribbon, context-menu, update dialog, and active-range feedback for @univerjs/docs-toc.

Package Overview

Package UMD global CSS Locales Facade entry Worker entry
@univerjs/docs-toc-ui UniverDocsTocUi Yes Yes No No

Installation

pnpm add @univerjs/docs-toc-ui
# or
npm install @univerjs/docs-toc-ui

Usage

Start with the integration setup for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.

import '@univerjs/docs-toc-ui/lib/index.css';
import EnUS from '@univerjs/docs-toc-ui/locale/en-US';
import { UniverDocsTocUIPlugin } from '@univerjs/docs-toc-ui';

univer.registerPlugin(UniverDocsTocUIPlugin);

// Merge EnUS into your Univer locale map when this package contributes UI text.

Register this package after Docs, Docs UI, Render Engine, and Docs TOC core packages.

Resources