dynamic styled components type typescript 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