NG-ZORRO

Angular UI Component Library based on Ant Design

README

NG-ZORRO


An enterprise-class Angular UI component library based on Ant Design.
Azure branch CodeFactor Codecov GitHub Release Date npm package NPM downloads GitHub license Discord extension-for-VSCode code style: prettier Twitter

undefined

English | 简体中文


✨ Features


- An enterprise-class UI design system for Angular applications.
- 60+ high-quality Angular components out of the box.
- Written in TypeScript with predictable static types.
- The whole package of development and design resources and tools.
- Support OnPush mode, high performance.
- Powerful theme customization in every detail.
- Internationalization support for dozens of languages.


☀️ License


FOSSA Status

🖥 Environment Support


Angular ^14.0.0 npm package
Server-side Rendering
Modern browsers including the following specific versions

[[[[[[
------------------------------------------------------
Edgelastlastlastlastlast


🎨 Design Specification


ng-zorro-antd synchronizes design specification with Ant Design on a regular basis, you can check the log online.


📦 Installation


We recommend using @angular/cli to install. It not only makes development easier, but also allows you to take advantage of the rich ecosystem of angular packages and tooling.

  1. ``` sh
  2. $ ng new PROJECT_NAME
  3. $ cd PROJECT_NAME
  4. $ ng add ng-zorro-antd
  5. ```

More information about @angular/cli here.


You can also install ng-zorro-antd with npm or yarn

  1. ``` sh
  2. $ npm install ng-zorro-antd
  3. ```

🔨 Usage


Import the component modules you want to use into your app.module.ts file and feature modules.

  1. ```ts
  2. import { NzButtonModule } from 'ng-zorro-antd/button';

  3. @NgModule({
  4.   imports: [ NzButtonModule ]
  5. })
  6. export class AppModule {
  7. }
  8. ```

@angular/cli users won't have to worry about the things below but it's good to know.


And import style and SVG icon assets file link in angular.json.

  1. ```diff
  2. {
  3.   "assets": [
  4. +   {
  5. +     "glob": "**/*",
  6. +     "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
  7. +     "output": "/assets/"
  8. +   }
  9.   ],
  10.   "styles": [
  11. +   "node_modules/ng-zorro-antd/ng-zorro-antd.min.css"
  12.   ]
  13. }
  14. ```

See Getting Started for more details.

🔗 Links



⌨️ Development


  1. ``` sh
  2. $ git clone git@github.com:NG-ZORRO/ng-zorro-antd.git
  3. $ cd ng-zorro-antd
  4. $ npm install
  5. $ npm run start
  6. ```

Browser would open automatically.

🤝 Contributing

PRs Welcome

We welcome all contributions. Please read our CONTRIBUTING.md first. You can submit any ideas as pull requests or as GitHub issues.


If you're new to posting issues, we ask that you read [How To Ask Questions The Smart Way](http://www.catb.org/~esr/faqs/smart-questions.html) (This guide does not provide actual support services for this project!), How to Ask a Question in Open Source Community and How to Report Bugs Effectively prior to posting. Well written bug reports help us help you!


Thanks to JetBrains for supporting us free open source licenses.
JetBrains

❓ Help from the Community


For questions on how to use ng-zorro-antd, please post questions to [Stack Overflow](http://stackoverflow.com/questions/tagged/ng-zorro-antd) using the `ng-zorro-antd` tag. If you're not finding what you need on stackoverflow, you can find us on [![Discord](https://img.shields.io/discord/748677963142135818?label=Discord&style=flat-square)](https://discord.com/channels/748677963142135818/764322550712893451) as well.

As always, we encourage experienced users to help those who are not familiar with ng-zorro-antd!

🎉 Users



We list some users here, if your company or product uses NG-ZORRO, let us know here!


Love ng-zorro-antd? Give our repo a star :star: :arrow_up:.