ahooks
Version:
react hooks library
18 lines (17 loc) • 561 B
TypeScript
import type { BasicTarget } from '../utils/domTarget';
export interface PageFullscreenOptions {
className?: string;
zIndex?: number;
}
export interface Options {
onExit?: () => void;
onEnter?: () => void;
pageFullscreen?: boolean | PageFullscreenOptions;
}
declare const useFullscreen: (target: BasicTarget, options?: Options) => readonly [boolean, {
readonly enterFullscreen: () => void;
readonly exitFullscreen: () => void;
readonly toggleFullscreen: () => void;
readonly isEnabled: true;
}];
export default useFullscreen;