Search code examples
angularangular-materialcontextmenuangular-cdkangular16

Angular Material vs Angular Cdk - which is better to use for an Angular app


I have an angular project using ng2-right-click-menu for context menu Since with Angular 16 its not compatible, i have to switch to an alternative solution When i searched for Angular material menu

<mat-menu> 

came across Angular CDK menu.

import {CdkMenuModule} from '@angular/cdk/menu;

Confused which one to use for my application. As the menu should be customizable.


Solution

  • Material actually extends the CDK, but adds stying and themes. Notice how the CDK menu is pretty basic looking. The Material menu has a bit more functionality, and it can be themed.

    I would suggest you go with Material, unless you want to create your own look and lose the themeing ability, then use the CDK.