Check out example codes for "Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>". It will help you in understanding the concepts better.

Code Example 1

interface StyledCardProps {
    width?: number
    height?: number
}

const StyledCard = styled.div<StyledCardProps>`
    // your css here
`

Learn ReactJs, React Native from akashmittal.com