useFullscreen
Toggle the fullscreen mode on a target element.
Type Definitions
const useFullscreen: <T extends HTMLElement = HTMLDivElement>(ref?: React.RefObject<T> | null) => {
ref: React.RefObject<T>;
isEnabled: boolean;
isError: boolean;
enter(options?: FullscreenOptions): Promise<void>;
exit(): Promise<void>;
toggle(enable?: boolean): Promise<void>;
};