개발관련/자바스크립트 팁

MUI 에서 차일드 선택하는 방법 mui styled child selector hover에서 선택하는 방법

개발자 Dane 2022. 7. 20. 20:23
반응형
const child = styled(div)`
opacity: 0;
right: 30px;
`;
 
 

 

const Parent = styled("div")`

&:hover {
	${CloseBtn} {
		opacity: 1;
	}
}

${CloseBtn} {
 width:10px;
 height:10px;
}

`;
반응형