use-fullscreen
Enter/exit fullscreen with given element
Import
Source
Docs
Package
Usage
Hook allows to enter/exit fullscreen for given element using the Fullscreen API.
By default if you don't provide ref, hook will target document.documentElement
:
Custom root element
Hook returns an optional ref function that can be passed to an element to act as root. Be sure to follow best practices to not confuse or trap the end user:
Definition
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback