오늘도

정체를 밝히자

Programming/react

styled components 를 이용해서 antd class 수정하기

Hanb 2020. 11. 5. 13:31

styled components 에서 createGlobalStyle 을 이용해서 antd 에서 정의한 class 를 수정해준다.

이외 react-slick 등 외부 라이브러리 사용시 정의된 class 를 수정할 수도 있다.

import { createGlobalStyle } from 'styled-components';

const Global = createGlobalStyle`
.ant-row{
...
}
.slick-slide{
  display: inline-block;
}
`;

 

 

 

'Programming > react' 카테고리의 다른 글

form value  (0) 2020.11.15
project setting 시  (0) 2020.11.15
Next>export  (0) 2020.10.26
Next>styling 할때  (0) 2020.10.26
Next>antd 적용하기  (0) 2020.10.25