Khalid Khan

    Chakra UI companion for Javascript

    useMediaQuery is a custom hook used to help detect whether a single media query or multiple media queries individually match.

    The useMediaQuery hook returns an array of booleans, indicating whether the given query matches or queries match.

    Library: @chakra-ui/react

    Shortcut: chakra.usemediaquery

    import { useMediaQuery } from '@chakra-ui/react'
    const [Function_Name] = useMediaQuery('(min-width: Enter_Min-Width)')
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.