define a media query in styled components
snippet in javascript

define a media query in styled components

user1939

const CardWrapper = styled.div`
  display: flex;
  flex-direction: row;
  @media (max-width: 768px) {
    flex-direction: column;
  }
`;