MCPcopy Create free account
hub / github.com/IABTechLab/uid2docs / useIsMobile

Function useIsMobile

src/utils/isMobile.ts:30–33  ·  view source on GitHub ↗
(breakpoint = 998)

Source from the content-addressed store, hash-verified

28}
29
30export function useIsMobile(breakpoint = 998) {
31 const { width } = useWindowDimensions();
32 return width < breakpoint;
33}

Callers 2

HeroBgFunction · 0.90
PartnerFunction · 0.90

Calls 1

useWindowDimensionsFunction · 0.85

Tested by

no test coverage detected