Skip to content

Instantly share code, notes, and snippets.

@NGR-NP
Created October 3, 2023 06:36
Show Gist options
  • Save NGR-NP/ff5464d4f60d5adb19df073f924fb8ae to your computer and use it in GitHub Desktop.
Save NGR-NP/ff5464d4f60d5adb19df073f924fb8ae to your computer and use it in GitHub Desktop.
in mui make respondive component using useMediaquery theme break points
const theme = useTheme();
const isXsScreen = useMediaQuery(theme.breakpoints.only("xs")); // return boolean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment