import React from 'react'; import { typography, breakpoints } from '@material-ui/system'; import styled from 'styled-components'; // can't be inlined in the template string for proper type inference in TypeScript const styleFunction = breakpoints(typography); const Box = styled.div` ${styleFunction} `; /** * Outputs: * * font-size: 12px; * @media (min-width: 600px) { * font-size: 18px; * } * @media (min-width: 960px) { * font-size: 24px; * } */ export default function CollocationApi() { return ( Collocation API ); }