Skip to main content

Match Media Query

This component is used to check what breakpoint is currently active. It has one output for every breakpoint that outputs either true or false.

Please note that you need to place a Media Query Setup component in your projects home component for the Match Media Query comoponent to work.


Breakpoints

The breakpoints are set in the Media Query Setup component. If the built in default breakpoints don't fit you, you can change them there.

For edge cases where you need to use a one-off breakpoint, you can use the Match Custom Media Query component.

Common usage

The most common usecase is to use this node together with a States node, or the Mounted input, as pictured above.

Outputs

DataDescription
Matches Small Mobiletrue if the viewport matches the Small Mobile breakpoint
Matches Regular Mobiletrue if the viewport matches the Regular Mobile breakpoint
Matches Tablettrue if the viewport matches the Tablet breakpoint
Matches Regular Desktoptrue if the viewport matches the Regular Desktop breakpoint
Matches Large Desktoptrue if the viewport matches the Large Desktop breakpoint
Matches All Mobiletrue if the viewport matches the Small Mobile or Regular Mobile breakpoints
Matches All Desktoptrue if the viewport matches the Regular Desktop or Large Desktop breakpoints