CSS

21.12.13 text shadow

슈팅스타제제 2021. 12. 13. 13:32

styled component와 styleSheet 두 가지 방법 중

프로젝트에서는 styled component를 사용하기 때문에 

아래와 같이 사용하였다. 

const StyledText = styled.Text`
  text-shadow-color: black;
  text-shadow-offset: 0px 4px; //그림자 위치
  text-shadow-radius: 3px; //흐림 효과 정도
 `