PluginProbe
The Innovative Form Builder – IvyForms / 0.8.1
The Innovative Form Builder – IvyForms v0.8.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / frontend / src / utils / utilResponsive.ts

utilResponsive.ts in The Innovative Form Builder – IvyForms 0.8.1, at frontend/src/utils/utilResponsive.ts

20 lines 669 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { useBreakpoints } from '@vueuse/core'
2
3 const utilResponsive = () => {
4 const breakpoints = useBreakpoints({
5 tabletStart: 768,
6 desktopSmallStart: 1024,
7 desktopLargeStart: 1200,
8 })
9
10 const isMobile = breakpoints.smaller('tabletStart')
11 const isTablet = breakpoints.between('tabletStart', 'desktopSmallStart')
12 const isDesktop = breakpoints.greaterOrEqual('desktopSmallStart')
13 const isDesktopSmall = breakpoints.between('desktopSmallStart', 'desktopLargeStart')
14 const isDesktopLarge = breakpoints.greaterOrEqual('desktopLargeStart')
15
16 return { isMobile, isTablet, isDesktop, isDesktopSmall, isDesktopLarge }
17 }
18
19 export default utilResponsive
20