@react-awesome/use-breakpoint
Version:
useBreakpoint triggers callback when a container's size is equal to one specific breakpoint.
5 lines • 303 B
TypeScript
/**
* @description returns true if container's size is smaller than given breakpoint
*/
export declare const smaller: (BREAKPOINTS: Record<string, number>, containerEl: HTMLElement | null, direction?: 'horizontal' | 'vertical') => (breakpoint: string) => boolean;
//# sourceMappingURL=smaller.d.ts.map