utilities types
useMediaDevice
v.1.0.0 | SaturnHealthy
Hook used to retrieve the current end user device.
Params
No params are required.
Response
- device: DeviceBreakpointsType that indicates the current end user device.
Usage example
12345678910
import { useMediaDevice } from '@kubit-ui-web/react-components'; const MyComponent = () => { const device = useMediaDevice(); return ( <div> <p>The current device is: {device}</p> </div> );