Detections
Client-side detections for various user and browser information. Perfect for personalisation, analytics or debugging weird and wonderful bugs. Please note we're working on making our examples reactive! 🚀
detectScrollPosition
Detect the current scroll position of the window
detectMousePosition
Detect the absolute mouse position with the page
detectRelativeMousePosition
Detect the relative mouse position with the window size and returns a percentage value
detectWindowSize
Detect the browser's window size
detectScreenSize
Detect the screen or monitor size
detectActiveBrowser
Detect if the browser window is currently active or hidden.
detectColorScheme
Detect the current color scheme (Light or Dark)
detectUserTimezone
Detect the current user's Timezone
detectDeviceOrientation
Detect the currect device orientation
detectBreakpoint
Detect the current breakpoint based on Tailwind CSS breakpoints
detectNetworkStatus
Detect the current network status of the user (Online or Offline)
detectUrl
Returns the current URL
detectUrlPath
Returns the path of the current URL in an array
detectUrlParams
Returns a value from the URL by name
detectUrlHash
Returns a value from the URL hash by name
detectHost
Returns the current host or domain name from the URL
detectHostName
Returns the current hostname from the URL
detectPort
Returns the current port