Need geometry inside React logic? Open the Geometry Lab →

CSS Baseline

BROWSER + CSS

This composer requires no React Viewport. Browser-native layout is the recommended solution when it meets your requirements.

Browser policy: interactive-widget=resizes-content. Requested, not detected. On a supporting browser, the page shrinks when the keyboard opens. iOS may ignore this request and cover or pan the composer.

This uses 100dvh, env(safe-area-inset-bottom) and normal grid layout. Tap the input, scroll, then close the keyboard. If this solves your problem, stop here.

JavaScript still needs measurements for decisions such as rendering budgets or coordinate calculations. Try a JavaScript use case.

Browser resize policy
BrowserCssLab.tsx · actual source
BrowserCssLab.css · actual source
Composer.tsx · actual source

End of content. Test a long swipe here with the keyboard open.