@uva-glass/component-library
Version:
React components UvA
20 lines (19 loc) • 540 B
TypeScript
declare const BREAKPOINTS: {
xs: number;
sm: number;
md: number;
lg: number;
xl: number;
xxl: number;
};
type BreakpointState = Record<keyof typeof BREAKPOINTS, boolean>;
type InitialBreakpoints = keyof typeof BREAKPOINTS | '_initial';
type Orientation = 'portrait' | 'landscape' | null;
type ResponsiveState = {
greaterThan: BreakpointState;
lessThan: BreakpointState;
orientation: Orientation;
mediaType: InitialBreakpoints;
};
export declare const useResponsive: () => ResponsiveState;
export {};