| Package Name | UMD Namespace | Version | License | Downloads | Contains CSS | Contains i18n locales |
|---|---|---|---|---|---|---|
@univerjs/core |
UniverCore |
❌ | ❌ |
@univerjs/core as its name shows, is the core package of Univer, and provides foundational capabilities including:
For more information about @univerjs/core's API, please refer to the API documentation.
# Using npm
npm install @univerjs/core
# Using pnpm
pnpm add @univerjs/core
import { Univer } from '@univerjs/core';
new Univer({
theme: defaultTheme,
locale: LocaleType.EN_US,
locales,
logLevel: LogLevel.VERBOSE,
});
| Name | Type | Default | Description |
|---|---|---|---|
| theme | Theme | - | The theme of the application, which is used to control the appearance of the application. |
| locale | LocaleType | LocaleType.ZH_CN |
The locale of the application. The default value is LocaleType.ZH_CN. |
| locales | ILocales | - | The supported locales of the application. By default, the application supports Chinese. |
| logLevel | LogLevel | LogLevel.SILENT |
The log level of the application. |