Files
maher 511fad8199
Build / run (push) Has been cancelled
Initial commit
2026-05-14 13:42:10 +02:00

10 lines
262 B
TypeScript
Executable File

import {useViewportSize} from '@react-aria/utils';
export function useOverlayViewport(): Record<string, string> {
const {width, height} = useViewportSize();
return {
'--be-viewport-height': `${height}px`,
'--be-viewport-width': `${width}px`,
};
}