@anton.bobrov/react-vevet-hooks
Version:
A collection of custom React hooks designed to seamlessly integrate with the `Vevet` library
16 lines • 433 B
TypeScript
/**
* Custom React hook that checks if the current viewport breakpoint is 'desktop'.
*
* @example
* const MyComponent = () => {
* const isDesktop = useIsViewportDesktop();
*
* return (
* <div>
* {isDesktop ? 'Viewport is of desktop size.' : 'Not desktop'}
* </div>
* );
* };
*/
export declare function useIsViewportDesktop(): boolean;
//# sourceMappingURL=useIsViewportDesktop.d.ts.map