325
325

Reputation: 606

How do you increase the size of a Material UI card?

I am using Material UI version 4 and am incorporating cards into my website (click here for more details).

enter image description here

I want to increase the size of the entire card, so the picture appears larger. Since I just import the Material UI card "off the shelf" in my React program, I wasn't sure if it was possible to customize the sizing using CSS or some other method. Is something like this possible? Thanks in advance!

Upvotes: 0

Views: 1873

Answers (1)

J-007
J-007

Reputation: 206

Yes it is possible. you could style material UI components by passing in CSS class as props or you could override element style inside components by using classes props.

classes={{root:classes.some-class}}

You can see the details in API section of component. https://v4.mui.com/api/card/

Upvotes: 1

Related Questions