Skip to content

Properties

PropertyTypeDescription
whenobject(optional) Define a list of sizes to match, given as an object { min: 'small', max: 'medium' } or as an array [{ min: 'small', max: 'medium' }, { min: 'medium', max: 'large' }].
queryobject(optional) A MediaQuery as a string similar to the CSS API, but without @media.
notboolean(optional) Reverts the defined queries as a whole.
matchOnSSRboolean(optional) If set to true, it will match and return the given children during SSR.
childrenReact.ReactNode(optional) The content to be wrapped in the media query.