Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hover on child from parent mui react

<Box
  sx={{
    width: 300,
    height: 300,
    backgroundColor: "darkblue",
    ":hover .child": {
      backgroundColor: "orange"
    }
  }}
>
  <Box className="child" sx={{ width: 200, height: 200 }} />
</Box>

https://bilalahmed-dev.azeemlab.com/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hover #child #parent #mui #react
ADD COMMENT
Topic
Name
9+8 =