app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styles: [`
.mat-divider {
width: 100px;
}
`]
})
export class AppComponent { }
app.component.html
<h2 style="padding-top:25px; padding-bottom:25px;">
Angular Material - How to change Divider width
</h2>
<h4>Divider width : 100 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 - Button toggle group initially checked items
- angular material - How to show Tooltip
- angular material - How to set Tooltip show hide delay
- angular material - How to enable disable Tooltip
- angular material - How to show vertical Divider
- angular material - How to use Progress bar
- angular material - How to use query Progress bar
- angular material - Percentage in determinate Progress bar
- angular - How to use clearInterval()
- angular material - Show custom color in Progress bar
- angular material - How to change Divider thickness
- 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 Selection List