As per the official documentation angular material card component is a container component which holds title text image and action buttons to represent the single or specific subject.
Mat card content child margin.
While mat form field selector is valid and it works just fine sonarqube and other code quality tools will issue a warning on custom selectors.
Cards contain content and actions about a single subject.
Another example is a row based card list with 3 columns.
They should be easy to scan for relevant and actionable information.
Cards are surfaces that display content and actions on a single topic.
Mat card actions represents the section.
After this is a great selector to add content or sometimes even block level elements after the selected elements here the first inner div in every set of inner divs.
Mat card subtitle represents the section for subtitle.
The mat card an angular directive is used to create a card with material design styling and animation capabilities it provides preset styles for the common card sections.
My suggestion is to hook the form fields by its class name instead of component tag mat form field width.
Card component is a kind of container that contains different elements like text image forms maps button link and any other elements.
Mat card title represents the section for title.
So the content not in the bottom div is indeed only added in the top div and not in the bottom div.
Fxlayoutgap 32px corresponding to margin bottom.
It s a common ui pattern used with small cards.
Configure the gap size between each item.
Mat card content represents the section for content.