UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

15 lines (14 loc) 423 B
import * as React from 'react'; export interface IViewport { width: number; height: number; } export interface IWithViewportState { viewport?: IViewport; } export interface IWithViewportProps { skipViewportMeasures?: boolean; } export declare function withViewport<P extends { viewport?: IViewport; }, S>(ComposedComponent: (new (props: P, ...args: any[]) => React.Component<P, S>)): any;