1 | export type BreakpointDirection = 'up' | 'down' | true;
|
2 | export 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): boolean;
|
27 | (breakpoint: TKey, direction?: BreakpointDirection, window?: Window): boolean;
|
28 | };
|
29 | export type DefaultBreakpoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
30 | export type DefaultBreakpointMap = BreakpointMap<DefaultBreakpoints>;
|
31 | declare const useBreakpoint: {
|
32 | (breakpointMap: Partial<Record<DefaultBreakpoints, BreakpointDirection>>, window?: Window): boolean;
|
33 | (breakpoint: DefaultBreakpoints, direction?: BreakpointDirection, window?: Window): boolean;
|
34 | };
|
35 | export default useBreakpoint;
|