VOOZH about

URL: https://www.geeksforgeeks.org/angular-js/ant-design-introduction-and-installation-for-angular/

⇱ Ant Design Introduction and Installation for Angular - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Ant Design Introduction and Installation for Angular

Last Updated : 15 Jul, 2025

Ant Design is a design pattern for enterprise-level products that can be integrated with other front-end frameworks such as Angular, React, or Vue. Ant Design official implementation is released with React but it can be used with other JavaScript frameworks. It is an open-source tool with approximately 50.4K GitHub stars, it is the world's second most used React UI library. Many companies are using this design pattern like Alibaba, Tencent, Didi, etc.

Features of Ant Design:

  • Supports internationalization.
  • Rich and interactive user interface.
  • Powerful theme customization.
  • High-quality components are present.
  • High performance.

Prerequisite:

  • A code editor like VSCode, Sublime, Brackets, etc.
  • NodeJS should be installed in the system

For Windows

https://www.geeksforgeeks.org/installation-guide/install-node-js-on-windows/

For Linux

https://www.geeksforgeeks.org/node-js/installation-of-node-js-on-linux/
  • Knowledge of setting up an Angular Project
  • https://www.geeksforgeeks.org/angular-js/angular-7-installation/

    Installation of Ant Design of Angular

    • In the terminal, go to that folder of the angular project which you have created, then install Ant Design of Angular by using the following command:

    npm install ng-zorro-antd

    👁 Image
    Installation of Ant Design of Angular
    • In "angular.json" file add Ant Design .css file in styles array as given below:
    • In "app.module.ts" import the Ant Design button module, so that we can access it in .html file as given below:
    • In "app.component.html" file add the following code as given below:
    • Add some CSS in "app.component.scss" to show the buttons at the center as given below:
      • In the terminal, run the application in the browser by using the following command:
        ng serve -o

      Output:

      👁 Image
      Final Output in the browser
Comment
Article Tags:

Explore