angular-material
Installation
SKILL.md
Angular Material Component Library Skill
Rules
Setup and Configuration
- Must install
@angular/material,@angular/cdk,@angular/animations - Must configure
provideAnimations()inapp.config.ts - Must import specific Material modules (e.g.,
MatButtonModule,MatIconModule) - Must NOT import all Material modules with wildcard (
import * as Material)
Form Controls
- Must wrap all
matInputin<mat-form-field>with<mat-label> - Must use
appearance="outline"orappearance="fill"for form fields - Must use Reactive Forms with Material form controls
- Must provide validation error messages with
<mat-error> - Must use
MatDatepickerModulewithMatNativeDateModulefor date pickers