Skip to content
zenui/react-hooks

useBattery

Reads the battery level and charging state from the Battery Status API. Use it to pause heavy work or warn the user when the battery is low.

Level
Basic
Since
v2.1.0
import {useBattery} from '@zenuilabs/react-hooks';
Loading demo_

More in Browser & Device