on-internet
← Community

CSS Grid Cards Are linked Horizontally

Stack Overflow ·

I am using Material UI Grid as an container to Cards. I have two columns of cards and I have a function when someone clicks one of those cards it expands vertically. Everything works fine but problem is when I click to expand the card the parallel card also expands which is next to it. How can I prevent this behaviour ? Thanks in advance. import { FC } from "react" import Grid from "@mui/material/Grid" export const ExamoCardsGrid: FC = ({ children }) => { return ( <Grid spacing={8} container justifyContent="center"> {children} </Grid> ) } Here is the snippet import { memo } from "react" import

Comments

Sign in or sign up to comment and upvote.

No comments yet.