A Hook that is able to set dom element to be full-screen.
Basic usage of useFullscreen hook.
| Property | Description | Type | Default |
|---|---|---|---|
| target | DOM element or Ref Object | HTMLElement | () => HTMLElement | React.MutableRefObject | - |
| options | setting(optional) | Options | - |
| Property | Description | Type | Default |
|---|---|---|---|
| onExitFull | listen for exit full screen events | () => void | - |
| onFull | listen for full screen events | () => void | - |
| Property | Description | Type |
|---|---|---|
| isFullscreen | Whether it is the full screen state | boolean |
| setFull | set full screen | () => void |
| exitFull | exit full screen | () => void |
| toggleFull | toggle full screen | () => void |