reactuals
Version:
A useful package providing a collection of 50+ React hooks and utilities to simplify React development.
12 lines (11 loc) • 318 B
TypeScript
type Breakpoints = {
[key: string]: number;
};
export declare function useBreakpoint(breakpoints: Breakpoints): {
breakpoint: string;
isBreakpoint: (key: string) => boolean;
isAbove: (key: string) => boolean;
isBelow: (key: string) => boolean;
getCurrentBreakpoint: () => string;
};
export {};