UNPKG

@bianic-ui/media-query

Version:

A React hook for changing properties or visibility of a component based on css media query

8 lines (7 loc) 258 B
import * as React from "react"; /** * React hook that tracks state of a CSS media query * * @param query the media query to match */ export declare function useMediaQuery(query: string): readonly [boolean, React.Dispatch<React.SetStateAction<boolean>>];