UNPKG

material-ui-cordova

Version:

React components that implement Google's Material Design.

28 lines (22 loc) 595 B
import { Breakpoint } from '../styles/createBreakpoints'; export interface WithWidthOptions { resizeInterval: number; } export interface WithWidthProps { width: Breakpoint; } export function isWidthDown( breakpoint: Breakpoint, screenWidth: Breakpoint, inclusive?: boolean ): boolean; export function isWidthUp( breakpoint: Breakpoint, screenWidth: Breakpoint, inclusive?: boolean ): boolean; export default function withWidth( options?: WithWidthOptions ): <P>( component: React.ComponentType<P & WithWidthProps> ) => React.ComponentClass<P & Partial<WithWidthProps>>;