The useFullscreen hook provides functionality for managing fullscreen mode in web applications. It allows you to request fullscreen mode for a specific element and exit fullscreen mode when needed. The hook also tracks whether the document is currently in fullscreen mode.
Name | Type | Description |
---|---|---|
isFullscreen | boolean | Indicates whether the document is currently in fullscreen mode. |
requestFullscreen | (element: HTMLElement) => void | Requests fullscreen mode for a specified HTML element. |
exitFullscreen | () => void | Exits fullscreen mode if the document is currently in fullscreen. |
Key Features
This content can be viewed in full-screen mode.
Fullscreen status: Disabled