Skip to main content

Breakpoints

Grid layout related settings

const Box = styled.div`
display: none;

${media.xl`
display: flex;
`}
`;
Tip

But what should I do if the IDE cannot check CSS style errors?

You can install Webstorm / Styled Component & Styled JSX plugins

Webstorm

Search Plugins and Install

Webstorm Plugins

in Languages & Frameworks > Javascript > Styled Components

add media

Webstorm Styled Compoennt

then check!

Webstorm JSX