UNPKG

611 BTypeScriptView Raw
1import React from 'react';
2export interface BreakpointConsumerProps {
3 children: (object: {
4 breakpointIndex: number;
5 breakpointLabel: string;
6 }) => React.ReactNode;
7 theme?: {
8 labels: string[];
9 };
10}
11export declare function BreakpointConsumer({ children }: {
12 children: (object: {
13 breakpointIndex: number;
14 breakpointLabel: string;
15 }) => React.ReactNode;
16}): React.ReactNode;
17export declare function useInitialBreakpoint(): {
18 breakpointIndex: number;
19 breakpointLabel: string;
20};
21export declare const BreakpointProvider: React.Provider<string>;