UNPKG

@anton.bobrov/react-vevet-hooks

Version:

A collection of custom React hooks designed to seamlessly integrate with the `Vevet` library

21 lines 683 B
export declare type TViewportOrientation = 'portrait' | 'landscape'; /** * Custom React hook that detects the current viewport orientation. * * This hook uses the `vevet` library to determine the orientation of the viewport * (either 'portrait' or 'landscape') and updates the state accordingly * whenever the viewport is resized. * * @example * const MyComponent = () => { * const orientation = useViewportOrientation(); * * return ( * <div> * Current Orientation: {orientation} * </div> * ); * }; */ export declare function useViewportOrientation(): TViewportOrientation; //# sourceMappingURL=useViewportOrientation.d.ts.map