Skip to content

Card does not filled up allocated Grid spaces #3615

Answered by nkrantz
claudiachua asked this question in Q&A
Discussion options

You must be logged in to vote

PasteBot is correct that using a Box is fine. The Card behavior is intended as the component fits the width of the content, and without full-width content, Grid, which uses flex, will shrink down the width. Take a look at those relevant discussions linked in the PasteBot reply. The second one contains a helpful CodeSandbox that shows different ways Cards can be sized using different layout wrappers.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nkrantz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants