UI Overview

Architecture

Univer's UI base is organized as shown below:

DesktopWorkbench BuiltInUIPart slotsIUIPartsService.registerComponent(part, factory)
workbench-layout
BuiltInUIPart.CUSTOM_HEADERCustom Header
BuiltInUIPart.TOOLBARToolbar+ HEADER_MENU
BuiltInUIPart.LEFT_SIDEBARLeft Sidebar
BuiltInUIPart.HEADERHeader
BuiltInUIPart.CONTENTContent
internal Sidebar serviceRight Sidebar
BuiltInUIPart.FOOTERFooter
outside workbench-layout
BuiltInUIPart.GLOBALGlobal
BuiltInUIPart.FLOATINGFloating Portal

Plugins add their features and views on top of this base, and together they form a complete application.

Design system

Univer's design system is built on Tailwind CSS. It defines a set of design tokens that the rendering engine reuses, so the rendering engine and the view layer stay visually consistent. The tokens are provided by the @univerjs/themes package, and changing them restyles the application.

Components

Univer builds its view layer with React components. For applications that already use React, using Univer's components or registering custom ones is straightforward. React is not the only option: Univer also supports Vue (3.x) and Web Components.

Basic components are provided by the @univerjs/design package and icon components by @univerjs/icons. Both can be used independently of Univer.

Custom components are typically used in three situations:

  • Adding custom buttons to the Ribbon or Context Menu
  • Integrating custom components in the Sidebar, Popup, and similar surfaces
  • Replacing built-in components

The following pages describe how to register and use custom components.

Configure the menu order and grid placement at startup in menu configuration. After the editor is running, change existing menus through the menu Facade API.

How is this guide?

© 2026 DreamNum Co., Ltd.