styled components as prop typescript function code example
Example: styled components props typescript
# to prevent typescript error, install this
yarn add @types/styled-components
# NPM
npm install @types/styled-components
# to prevent typescript error, install this
yarn add @types/styled-components
# NPM
npm install @types/styled-components