analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
28 lines • 962 B
TypeScript
/**
* Device type based on screen width
*/
export type DeviceType = 'responsive' | 'desktop';
/**
* Gets the current device type based on screen width
* @returns {DeviceType} 'responsive' for mobile/tablet (width < 931px), 'desktop' for larger screens
*/
export declare const getDeviceType: () => DeviceType;
/**
* Hook to detect screen size and get responsive classes
* @returns object with isMobile, isTablet, responsive class functions and getDeviceType
*/
export declare const useMobile: () => {
isMobile: boolean;
isTablet: boolean;
isSmallMobile: boolean;
isExtraSmallMobile: boolean;
isUltraSmallMobile: boolean;
isTinyMobile: boolean;
getFormContainerClasses: () => string;
getHeaderClasses: () => string;
getMobileHeaderClasses: () => string;
getDesktopHeaderClasses: () => string;
getVideoContainerClasses: () => string;
getDeviceType: () => DeviceType;
};
//# sourceMappingURL=useMobile.d.ts.map