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