Files
cultureat-bak/wp-content/themes/ccat/app/composables/useResponsive.ts
Pascal Martineau 312a6f1b62
Some checks failed
NuxtHub deployment / deploy (push) Failing after 21s
WordPress deployment / deploy (push) Successful in 8s
feat: Initial Nuxt app
2025-08-27 13:37:40 -04:00

12 lines
336 B
TypeScript

import { breakpointsTailwind, useBreakpoints } from "@vueuse/core";
export function useResponsive() {
const { isMobileOrTablet } = useDevice();
const breakpoints = useBreakpoints(breakpointsTailwind, { ssrWidth: isMobileOrTablet ? 375 : 1024 });
return {
breakpoints,
isDesktop: breakpoints.greaterOrEqual("lg"),
};
}