UNPKG

@mui/material

Version:

Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

34 lines (27 loc) 712 B
import { Breakpoint } from '@mui/system'; import { PropInjector } from '@mui/types'; export interface WithWidthOptions { withTheme?: boolean; noSSR?: boolean; initialWidth?: Breakpoint; resizeInterval?: number; } export interface WithWidth { width: Breakpoint; } export interface WithWidthProps extends Partial<WithWidth> { innerRef?: React.Ref<any>; } 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, ): PropInjector<WithWidth, WithWidthProps>;