JohnDiGriz
JohnDiGriz

Reputation: 191

Filling mat-layout-grid-cell with component in matblazor

I'm creating MatBlazor application using Layout Grid. I have a button component, and I want it to fill it's cell completely. How do I extend component to fill its cell?

Upvotes: 1

Views: 313

Answers (1)

Cristian Teodorov
Cristian Teodorov

Reputation: 134

If I understand what you are asking correctly, you are trying to get a component to fill its parent. You should be able to achieve this by adding CSS to your component. Try:

width: 100%;
height: 100%;

Also remove any padding/margin.

Upvotes: 1

Related Questions