Skip to content
项目

关于

80 多个符合无障碍要求且可自定义的 Angular 组件,采用 MIT 许可证。由社区维护,是 PrimeNG v21 的延续,旨在保持开放。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
+3
7天
+10
15天
+28
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
Optimus UI

Optimus UI

A community-maintained, MIT licensed suite of 80+ accessible Angular UI components.

npm license angular

Documentation · Getting started · Migrating from PrimeNG · Philosophy · FAQ


Why this exists

In June 2026 PrimeTek archived the PrimeNG repository and moved future major versions, starting with v22, to a commercial license — their announcement explains why. That left a lot of applications on a library with no further open source releases.

Optimus UI is a community fork of PrimeNG v21, the last MIT licensed version, maintained by OpenNG and the community. It stays MIT. There is no paid tier and none is planned.

It is not affiliated with, endorsed by, or sponsored by PrimeTek. The philosophy page sets out what the project commits to and — just as importantly — what it does not do.

Quick start

Check which Angular versions each Optimus UI release supports in the Angular version compatibility table, then run:

ng add @openng/optimus-ui

The schematic asks which theme preset you want, adds the packages, wires provideOptimus into your root providers and installs everything.

import { Button } from '@openng/optimus-ui/button';
<p-button label="Check" />

Full setup, including the manual path and icons, is in the getting started guide.

Migrating from PrimeNG

ng add does not migrate an existing workspace. It sets up new projects only, and when it detects a primeng dependency it leaves your code untouched and fails with an error pointing you here rather than reporting success. Use the migrate-from-primeng schematic instead: install the package so the Angular CLI can resolve it, then run the schematic. Packages are swapped, imports are rewritten, and you get a report of anything it could not handle automatically, with file and line numbers.

npm install @openng/optimus-ui@1
ng generate @openng/optimus-ui@1:migrate-from-primeng

See the migration guide for prerequisites and the manual cases. If you are on PrimeNG v20 or older, upgrade to v21 first.

Packages

Package What it is
@openng/optimus-ui The components, directives and services. The only package most applications install directly.
@openng/optimus-ui-themes Built-in theme presets — Aura, Material, Lara and Nora.
@openng/optimus-ui-styled The styled-mode theming engine that turns presets into CSS variables.
@openng/optimus-ui-styles Base styles shared by the components.
@openng/optimus-ui-tailwindcss Tailwind CSS plugin, for both v3 and v4.
@openng/optimus-ui-locale i18n locale definitions.
@openng/optimus-ui-motion Animation and transition utilities.
@openng/optimus-ui-utils Shared helpers used across the packages.

Icons live in @openng/icons and are optional — components accept any icon through templating, but the documentation examples use the pi pi-* classes.

Requirements

  • Angular v21 or newer
  • RxJS v7.8.1 or newer

Contributing

Issue triage, reproductions, pull requests and documentation fixes are all welcome — and if you had a pull request open on primefaces/primeng that never landed, CONTRIBUTING.md shows how to bring it across with its history intact.

pnpm install     # dependencies + git hooks
pnpm run dev     # run the documentation site locally

The contribution guide covers the workflow, and the roadmap covers what is planned.

Support

Community only — there is no SLA and no commercial support. Issues for bugs, Discussions for questions.

License

MIT. Forked from PrimeNG v21, which was published under the same license, with the original copyright notices intact. PrimeNG, PrimeFaces, PrimeReact, PrimeVue and PrimeFlex are trademarks of PrimeTek.

探索相关项目

加载中…