Adding Angular Material Component to Angular Application Last Updated : 15 Jul, 2025 Comments Improve Suggest changes 5 Likes Like Report Angular Material provides Design Components for Angular. This is build and maintained by Angular Team. This provides the Angular developers with common UI components and tools to help build their own custom components. We as a user can integrate this with our Angular Application using the npm packages provided by them. Angular Material also provides CDK in order to integrate common Interaction patterns. Lists of Some Components provided is: Form ControlNavigationLayoutButton and IndicatorsData TablePopupsModals STEPS TO ADD MATERIAL COMPONENT TO YOUR APPLICATION: Install AngularCreate a Angular CLI ProjectInstall the Angular Material npm package as well as add corresponding angular/cdk because angular material uses it and is dependent on it: npm install --save angular-material npm install --save @angular/cdkThis command will add the latest Angular Material Version package to the project as well as '--save' will add the dependency to package.json file Note if you want to add any specific version to Angular user the command below : npm install --save angular-material@version npm install --save @angular/cdk@versionIn order to use any Component, Import that Component in app.module.ts fileAdd the Imported class to "imports" section in your app.module.ts @NgModule sectionNow, we can start using it in our project. Choose a specific selector for the Material Component. Go to app.component.html file or another template of the component in which you want to add the Material Component, write the selector code to it.Save all the files and then Start the Application using: ng serveThis will reduce your efforts to implement the component right from the base. EXAMPLE OF ADDING CARD COMPONENT TO YOUR ANGULAR PROJECT: Install AngularCreate a new Angular project using: ng new GfGMaterialCardExampleYou will be asked 2 questions as shown below: Would you like to add Angular routing?Which stylesheet format would you like to use? (Use arrow keys)Change the directory level, go to the project folder. cd GfGMaterialCardExampleInstall the Angular Material npm package(@8.0.0 is compatible with Angular 8, Add Angular component based on the Angular Version you are using), Also Install Angular CDK: npm install --save [email protected] npm install --save @angular/cdk@^8.2.3Add the Card Component Import to app.module.ts file as shown below: Remove all the Boilerplate Code in app.component.html File and Add this code: Geeks For Geeks - Angular Material Card Example Add the CSS Code you want to apply in app.component.css file: mat-card { color: green; border:1px solid black; }Start the Application using ng serve command: Create Quiz Comment S shantanujoshi Follow 5 Improve S shantanujoshi Follow 5 Improve Article Tags : AngularJS AngularJS-Misc Explore AngularJS BasicsAngularJS Tutorial 5 min read Introduction to AngularJS 4 min read Angular CLI | Angular Project Setup 3 min read AngularJS Expressions 2 min read AngularJS Modules 3 min read AngularJS ng-model Directive 4 min read AngularJS Data Binding 4 min read AngularJS Controllers 3 min read AngularJS | Scope 2 min read AngularJS Services 4 min read AngularJS | AJAX - $http 3 min read AngularJS | Tables 2 min read AngularJS Select Boxes 2 min read AngularJS SQL 3 min read AngularJS HTML DOM 2 min read AngularJS Events 3 min read AngularJS | Forms 3 min read AngularJS Form Validation 3 min read AngularJS | API 2 min read AngularJS and W3.CSS 2 min read AngularJS Includes 3 min read AngularJS Animations 1 min read AngularJS | Application 3 min read AngularJS DirectivesAngularJS Directives 9 min read AngularJS ng-app Directive 1 min read AngularJS ng-bind Directive 2 min read AngularJS ng-bind-html Directive 2 min read AngularJS ng-bind-template Directive 2 min read AngularJS ng-blur Directive 1 min read AngularJS ng-change Directive 2 min read AngularJS ng-checked Directive 2 min read AngularJS ng-class Directive 2 min read AngularJS ng-class-even Directive 2 min read AngularJS ng-class-odd Directive 2 min read AngularJS ng-click Directive 2 min read AngularJS ng-cloak Directive 2 min read AngularJS ng-controller Directive 2 min read AngularJS Directives Complete Reference 2 min read AngularJS FiltersAngularJS | Filters 7 min read AngularJS currency Filter 2 min read AngularJS | date Filter 2 min read AngularJS filter Filter 3 min read AngularJS json Filter 2 min read AngularJS limitTo Filter 2 min read AngularJS lowercase Filter 1 min read AngularJS number Filter 1 min read AngularJS orderBy Filter 4 min read AngularJs uppercase Filter 1 min read AngularJS Converting FunctionsAngularJS angular.lowercase() Function 2 min read AngularJS angular.uppercase() Function 1 min read AngularJS angular.forEach() Function 1 min read AngularJS Comparing FunctionsAngularJS angular.isArray() Function 2 min read AngularJS angular.isDate() Function 2 min read AngularJS angular.isDefined() Function 2 min read AngularJS angular.isElement() Function 2 min read AngularJS angular.isFunction() Function 2 min read AngularJS angular.isNumber() Function 2 min read AngularJS angular.isObject() Function 2 min read AngularJS | angular.isString() Function 1 min read AngularJS angular.isUndefined() Function 2 min read AngularJS angular.equals() Function 2 min read AngularJS angular.toJson() Function 2 min read AngularJS QuestionsHow to bundle an Angular app for production? 4 min read How to add many functions in one ng-click directive? 2 min read How to directly update a field by using ng-click in AngularJS ? 3 min read How to Add Dynamic Options for Multiple Selects Inside ng-repeat Directive ? 3 min read How to detect when an @Input() value changes in Angular? 3 min read How to open popup using Angular and Bootstrap ? 2 min read How to reload or re-render the entire page using AngularJS? 2 min read How to add input fields dynamically on button click in AngularJS ? 2 min read How to Create Button Dynamically with Click Event in Angular ? 2 min read How to use jQuery in Angular ? 2 min read AngularJS Examples 2 min read Like