@univerjs/docs-ui provides the editor UI layer for Univer Docs, including selection rendering, clipboard support, menus, and document interaction services.
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|---|---|---|---|---|---|
@univerjs/docs-ui |
UniverDocsUi |
Yes | Yes | Yes | No |
pnpm add @univerjs/docs-ui
# or
npm install @univerjs/docs-uiStart 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-ui/lib/index.css';
import EnUS from '@univerjs/docs-ui/locale/en-US';
import { UniverDocsUIPlugin } from '@univerjs/docs-ui';
univer.registerPlugin(UniverDocsUIPlugin);
// Merge EnUS into your Univer locale map when this package contributes UI text.- Import
@univerjs/docs-ui/facadewhen using this package through Univer Facade APIs.