app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styles: [`
.mat-divider {
border-top-width: 5px;
}
`]
})
export class AppComponent { }
app.component.html
<h2 style="padding-top:25px; padding-bottom:25px;">
Angular Material - How to change Divider thickness
</h2>
<h4>Divider line thinkness : 5 pixels</h4>
<h3>I am top</h3>
<mat-divider></mat-divider>
<h3>I am middle</h3>
<mat-divider></mat-divider>
<h3>I am bottom</h3>
app.module.ts [import]
import {MatDividerModule} from '@angular/material/divider'
- angular material - How to change Divider width
- angular material - How to change vertical Divider height
- angular material - How to change Divider margin
- angular material - How to use Progress spinner
- angular material - How to use determinate Progress spinner
- angular material - Progress spinner with percentage
- angular material - How to change Progress spinner size
- angular material - How to use Card
- angular material - How to use Tabs
- angular material - How to use custom label in Tabs
- angular material - How to slow Tabs content transition
- angular material - How to get Tabs selected index
- angular material - How to use Tabs selectedTabChange event
- angular material - How to show remove button on Tab label
- angular material - How to show Tab label bottom of content