Skip to content
Discussion options

You must be logged in to vote

Hi @shyamajp

Thanks for posting this question here, and providing code examples and screenshots. Your first solution is super close. Because we need to wrap the Card in the extra Box, the Card won't stretch to 100% height by default. In order to solve for that, we can add display="flex" to the box, which make the inner Cards to stretch. Here's a CodeSandbox to show the solution working. I added a comment where I added the display prop.

https://codesandbox.io/s/icy-leaf-m2w5x?file=/src/index.tsx

Let us know if that works for you. Thanks!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shyamajp
Comment options

Answer selected by shyamajp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants