UseBreakpoint
Last updated: 2.0.0 (22/01/2024)
Last updated
Was this helpful?
Last updated: 2.0.0 (22/01/2024)
Last updated
Was this helpful?
useBreakpoint
is a hook that returns the current responsive breakpoint. The hook will use breakpoint attributes defined in the ValenceProvider
to determine the current device breakpoint.
isMobile
boolean
Is the current breakpoint "mobile"
?
isTablet
boolean
Is the current breakpoint "tablet"
?
isDefault
boolean
Is the current breakpoint "default"
?
isDesktopLarge
boolean
Is the current breakpoint "desktopLarge"
?
isTV
boolean
Is the current breakpoint "tv"
?