@@ -526,3 +526,50 @@ <h3><textarea> with ngModel</h3>
526526 </ label >
527527 </ mat-card-content >
528528</ mat-card >
529+
530+ < mat-card class ="demo-card demo-basic ">
531+ < mat-toolbar color ="primary "> Variants</ mat-toolbar >
532+ < mat-card-content >
533+ < mat-form-field variant ="legacy ">
534+ < input matInput placeholder ="example " [(ngModel)] ="legacyVariant " required >
535+ < mat-error > This field is required</ mat-error >
536+ < mat-hint > Please type something here</ mat-hint >
537+ </ mat-form-field >
538+
539+ < mat-form-field variant ="standard ">
540+ < input matInput placeholder ="example " [(ngModel)] ="standardVariant " required >
541+ < mat-error > This field is required</ mat-error >
542+ < mat-hint > Please type something here</ mat-hint >
543+ </ mat-form-field >
544+
545+ < mat-form-field variant ="box ">
546+ < input matInput placeholder ="example " [(ngModel)] ="boxVariant " required >
547+ < mat-error > This field is required</ mat-error >
548+ < mat-hint > Please type something here</ mat-hint >
549+ </ mat-form-field >
550+
551+ < table style ="width: 100% " cellspacing ="0 "> < tr >
552+ < td >
553+ < mat-form-field variant ="legacy " style ="width: 100% ">
554+ < input matInput placeholder ="example " [(ngModel)] ="legacyVariant " required >
555+ < mat-error > This field is required</ mat-error >
556+ < mat-hint > Please type something here</ mat-hint >
557+ </ mat-form-field >
558+ </ td >
559+ < td >
560+ < mat-form-field variant ="standard " style ="width: 100% ">
561+ < input matInput placeholder ="example " [(ngModel)] ="standardVariant " required >
562+ < mat-error > This field is required</ mat-error >
563+ < mat-hint > Please type something here</ mat-hint >
564+ </ mat-form-field >
565+ </ td >
566+ < td >
567+ < mat-form-field variant ="box " style ="width: 100% ">
568+ < input matInput placeholder ="example " [(ngModel)] ="boxVariant " required >
569+ < mat-error > This field is required</ mat-error >
570+ < mat-hint > Please type something here</ mat-hint >
571+ </ mat-form-field >
572+ </ td >
573+ </ tr > </ table >
574+ </ mat-card-content >
575+ </ mat-card >
0 commit comments