score:0

Accepted answer
 const StyledDiv = styled.div<{ active?: boolean }>`
     background-color: ${({ active }) => active ? 'blue' : 'grey'};
`;

Related Query

More Query from same tag