pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+33
@@ -0,0 +1,33 @@
|
||||
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>;
|
||||
Reference in new issue
Block a user