UNPKG

vue-screen

Version:

Reactive screen size and media query states for Vue. Integrates with most UI frameworks out of the box.

21 lines (20 loc) 443 B
export interface ScreenObject { resolution: string; width: number; height: number; orientation: string; portrait: boolean; landscape: boolean; touch: boolean; } export interface ScreenConfig { width?: number; height?: number; orientation?: 'portrait' | 'landscape'; touch?: boolean; } declare module 'vue' { interface ComponentCustomProperties { $screen: Readonly<ScreenObject>; } }