API Reference > ui-framework > Hooks > useActiveViewport useActiveViewport Function Beta React hook that maintains the active viewport. useActiveViewport(): ScreenViewport | undefined Returns - ScreenViewport | undefined Defined in ui/framework/src/ui-framework/hooks/useActiveViewport.tsx Line 15 Last Updated: 13 June, 2024