UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

22 lines (21 loc) 822 B
import React from 'react'; import { ContextProps } from './Context'; import { onMediaQueryChange } from './MediaQueryUtils'; import type { MediaQueryProps, MediaQueryState, MediaQueryListener } from './MediaQueryUtils'; export type { MediaQueryProps }; export { onMediaQueryChange }; export default class MediaQuery extends React.PureComponent<MediaQueryProps, MediaQueryState> { static contextType: React.Context<ContextProps>; listener: MediaQueryListener; context: ContextProps; state: { match: any; mediaQueryList: any; }; constructor(props: MediaQueryProps, context?: ContextProps); componentDidMount(): void; componentWillUnmount(): void; componentDidUpdate(props: any): void; bindListener: () => void; render(): import("react/jsx-runtime").JSX.Element; }