UNPKG

@material-ui/core

Version:

Quickly build beautiful React apps. Material-UI 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.

23 lines (18 loc) 605 B
export interface MuiMediaQueryListEvent { matches: boolean; } export interface MuiMediaQueryList { matches: boolean; addListener: (listener: MuiMediaQueryListListener) => void; removeListener: (listener: MuiMediaQueryListListener) => void; } export type MuiMediaQueryListListener = (event: MuiMediaQueryListEvent) => void; export interface Options { defaultMatches?: boolean; noSsr?: boolean; ssrMatchMedia?: (query: string) => { matches: boolean }; } export default function useMediaQuery<Theme = unknown>( query: string | ((theme: Theme) => string), options?: Options, ): boolean;