react-full-screen
Version:
Component and Hook for handling full screen components
16 lines (15 loc) • 523 B
TypeScript
import React from 'react';
export interface FullScreenHandle {
active: boolean;
enter: () => Promise<void>;
exit: () => Promise<void>;
node: React.MutableRefObject<HTMLDivElement | null>;
}
export interface FullScreenProps {
handle: FullScreenHandle;
children: any;
onChange?: (state: boolean, handle: FullScreenHandle) => void;
className?: string;
}
export declare function useFullScreenHandle(): FullScreenHandle;
export declare const FullScreen: React.FC<FullScreenProps>;