@carbon/ibm-products
Version:
Carbon for IBM Products
14 lines • 637 B
TypeScript
/**
* Copyright IBM Corp. 2025, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Listens to changes in a media query and returns whether it matches.
* @param mediaQuery - The media query to listen to. For example, `(min-width: 600px)`.
* @param defaultState - The initial state to return before the media query is evaluated. Defaults to `false`.
* @returns Whether the media query matches.
*/
export declare const useMatchMedia: (mediaQuery: string, defaultState?: boolean) => boolean;
//# sourceMappingURL=useMatchMedia.d.ts.map