UNPKG

@alessiofrittoli/web-utils

Version:
14 lines (12 loc) 422 B
/** * Use this media query to check if document currently matches the portrait device orientation. * */ declare const portraitMediaQuery = "(orientation:portrait)"; /** * Check if device is in portrait orientation. * * @returns `true` if the device is in portrait orientation when this function is executed, `false` otherwise. */ declare const isPortrait: () => boolean; export { isPortrait, portraitMediaQuery };