@angular/material

Official Material Design component library for Angular — 30+ accessible, themeable UI components built for Angular's ecosystem.

@angular/material

Angular

Official Material Design component library for Angular — 30+ accessible, themeable UI components built for Angular's ecosystem.

Fit

Bundle (gzip)

212 B

253 B raw

Install size includes transitive dependencies. Bundle size is gzipped browser payload.

Freshness

The Problem

Building consistent, accessible UI components from scratch in Angular — buttons, dialogs, date pickers, data tables — requires significant effort and ARIA expertise. Third-party libraries often lag behind Angular's release cycle.

What It Does

Angular Material provides production-ready components that integrate with Angular's CDK, Forms, and Router. Each component supports theming via CSS custom properties, conforms to WAI-ARIA, and ships with built-in animations. The schematic tooling generates components pre-configured with the correct module imports.

Installation

bash
ng add @angular/material

Usage Example

typescript
// app.module.ts
import { MatButtonModule } from '@angular/material/button';
import { MatDialogModule } from '@angular/material/dialog';

@NgModule({ imports: [MatButtonModule, MatDialogModule] })
export class AppModule {}
html
<!-- component.html -->
<button mat-raised-button color="primary" (click)="openDialog()">
  Open Dialog
</button>

Related packages