useBattery*

React sensor hook that tracks battery status.

hooks

Note: current BatteryManager API state is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time.

Battery sensor: supported
Battery state: fetching

Installation

Run the following command:

npx ever-ui-clx@0.2.1 add demo-use-battery
# └──> Hook coming soon.

Usage