@guruhotel/aura-hooks
Version:
🪝 Hooks library designed by the Guruhotel team for Aura UI
27 lines (26 loc) • 629 B
TypeScript
import React from "react";
declare type BreakpointQueries = {
xs: string;
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
};
declare type BreakpointProps = {
xs?: boolean;
sm?: boolean;
md?: boolean;
lg?: boolean;
xl?: boolean;
"2xl"?: boolean;
};
export declare const BreakpointProvider: ({ children, queries, }: {
children: React.ReactNode;
queries: BreakpointQueries;
}) => JSX.Element;
export declare const useBreakpoint: () => {
currentScreen: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | string;
breakpointContext: BreakpointProps;
};
export {};