Skip to content
zenui/react-hooks

useBreakpoint

Reports the active min-width breakpoint using matchMedia, so by default components re-render only when a breakpoint is crossed. Opt in to live width tracking when you need the exact width. Hydration safe, with custom breakpoint maps.

Level
Intermediate
Since
v2.1.0
import {useBreakpoint} from '@zenuilabs/react-hooks';
Loading demo_

More in Browser & Device