UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

15 lines 493 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.viewportHeight = void 0; const viewportHeight = () => { if (!window.CSS.supports) { return '100vh'; } if (!window.CSS.supports('height: 100dvh') || !window.CSS.supports('max-height: 100dvh')) { const { innerHeight } = window; return `${innerHeight}px`; } return '100dvh'; }; exports.viewportHeight = viewportHeight; //# sourceMappingURL=viewportHeight.mixin.js.map