1 | export declare type BreakpointDirection = 'up' | 'down' | true;
|
2 | export declare type BreakpointMap<TKey extends string> = Partial<Record<TKey, BreakpointDirection>>;
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function createBreakpointHook<TKey extends string>(breakpointValues: Record<TKey, string | number>): {
|
26 | (breakpointMap: BreakpointMap<TKey>, window?: Window | undefined): boolean;
|
27 | (breakpoint: TKey, direction?: BreakpointDirection | undefined, window?: Window | undefined): boolean;
|
28 | };
|
29 | export declare type DefaultBreakpoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
30 | export declare type DefaultBreakpointMap = BreakpointMap<DefaultBreakpoints>;
|
31 | declare const useBreakpoint: {
|
32 | (breakpointMap: Partial<Record<DefaultBreakpoints, BreakpointDirection>>, window?: Window | undefined): boolean;
|
33 | (breakpoint: DefaultBreakpoints, direction?: BreakpointDirection | undefined, window?: Window | undefined): boolean;
|
34 | };
|
35 | export default useBreakpoint;
|