Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
34 lines
712 B
TypeScript
34 lines
712 B
TypeScript
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>;
|