Divider

API for divider

API reference for Angular Material divider

import {MatDividerModule} from '@angular/material/divider';

Selector: mat-divider

Properties
Name Description
@Input()

inset: boolean

Whether the divider is an inset divider.

@Input()

vertical: boolean

Whether the divider is vertically aligned.

API reference for Angular Material divider-testing

import {MatDividerHarness} from '@angular/material/divider/testing';

Harness for interacting with a mat-divider.

Methods
async
getOrientation
Returns
Promise<'horizontal' | 'vertical'>

async
host

Gets a Promise for the TestElement representing the host element of the component.

Returns
Promise<TestElement>

async
isInset
Returns
Promise<boolean>