Matexpansionpanel provides an expandable details summary view.
Mat expansion panel.
The mat expansion panel an angular directive is used to create an expandable detail v s summary view.
Mat expansion panel mat expansion panel so this is the basic selector by using this selector we can implement an expansion panel but with expansion panel we should have an appropriate header and also may contain an action bar.
Mat expansion panel header represents the header section.
This will remove the padding but be careful as it will remove it from all of the mat expansion panel body elements.
The expansion panel is created by adding the mat expansion panel element directive as a wrapper for each panel.
You can bypass this by setting a specific class to your expansion panel and then doing something like this in styles css.
In order to work with expansion panel we should import matexpansionmodule into our module file just like this.