@mui/material
Version:
Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.
7 lines (6 loc) • 478 B
TypeScript
import { UseMediaQueryOptions } from '@mui/system/useMediaQuery';
import { Theme } from "../styles/createTheme.js";
export * from '@mui/system/useMediaQuery';
// TODO v7: remove the generic. It's only used to prevent a breaking change in v6 from system's useMediaQuery in https://github.com/mui/material-ui/pull/44339.
declare function useMediaQuery<T = Theme>(queryInput: string | ((theme: T) => string), options?: UseMediaQueryOptions): boolean;
export default useMediaQuery;