styled components as prop with variable ts 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