npm i screenfull@5.1.0 import screenfull from 'screenfull' screenfull.toggle() GitHub - sindresorhus/screenfull: Simple wrapper for cross-browser usage of the JavaScript Fullscreen API