@mehranjavid/angular-legacy-material-components
v16.2.14
Published
Angular Material Legacy Components extracted for compatibility
Maintainers
Readme
Angular Legacy Material Components
A collection of Angular Material legacy components extracted from Angular Material v16 for compatibility with newer Angular versions.
Installation
npm install @mehranjavid/angular-legacy-material-componentsUsage
Import the legacy components you need:
import { MatLegacyButtonModule } from '@mehranjavid/angular-legacy-material-components/legacy-button';
import { MatLegacyFormFieldModule } from '@mehranjavid/angular-legacy-material-components/legacy-form-field';
import { MatLegacyInputModule } from '@mehranjavid/angular-legacy-material-components/legacy-input';
@NgModule({
imports: [
MatLegacyButtonModule,
MatLegacyFormFieldModule,
MatLegacyInputModule,
// ... other modules
],
// ...
})
export class AppModule { }Available Components
All legacy Angular Material components are available with the mat-legacy- prefix:
mat-legacy-button- Legacy buttonsmat-legacy-form-field- Legacy form fieldsmat-legacy-input- Legacy inputsmat-legacy-autocomplete- Legacy autocompletemat-legacy-select- Legacy selectmat-legacy-checkbox- Legacy checkboxesmat-legacy-radio- Legacy radio buttonsmat-legacy-slide-toggle- Legacy slide togglesmat-legacy-list- Legacy listsmat-legacy-card- Legacy cardsmat-legacy-chips- Legacy chipsmat-legacy-table- Legacy tablesmat-legacy-tabs- Legacy tabsmat-legacy-menu- Legacy menusmat-legacy-dialog- Legacy dialogsmat-legacy-snack-bar- Legacy snack barsmat-legacy-tooltip- Legacy tooltips- And many more...
Example
<mat-legacy-form-field>
<mat-legacy-label>Name</mat-legacy-label>
<input matInput [(ngModel)]="name">
</mat-legacy-form-field>
<button mat-legacy-raised-button color="primary">
Submit
</button>Compatibility
This package is compatible with:
- Angular 16, 17, 18, 19+
- Angular Material 16+
- Angular CDK 16+
License
MIT
Repository
https://github.com/h2qutc/angular-material-components
