@react-awesome/use-breakpoint
Version:
useBreakpoint triggers callback when a container's size is equal to one specific breakpoint.
6 lines • 371 B
TypeScript
/**
* @description returns true if container's size is between two given breakpoints.
* `between` won't compare the equation.
*/
export declare const between: (BREAKPOINTS: Record<string, number>, containerEl: HTMLElement | null, direction?: 'horizontal' | 'vertical') => (minBreakpoint: string, maxBreakpoint: string) => boolean;
//# sourceMappingURL=between.d.ts.map