Skip to main content

angular material - How to use Divider

app.component.html

<h2 style="padding-top:25px; padding-bottom:25px;">
    Angular Material - How to use Divider
</h2>


<h1>I am header</h1>
<mat-divider></mat-divider>

<h1>I am top</h1>
<mat-divider></mat-divider>

<h1>I am middle</h1>
<mat-divider></mat-divider>

<h1>I am bottom</h1>
<mat-divider></mat-divider>

<h1>I am footer</h1>
app.module.ts [import]

import {MatDividerModule} from '@angular/material/divider'
More Angular tutorials