generated from pascalmartineau/wp-skeleton
feat: Initial Nuxt app
This commit is contained in:
11
wp-content/themes/ccat/app/composables/useResponsive.ts
Normal file
11
wp-content/themes/ccat/app/composables/useResponsive.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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"),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user