Skip to content

useBattery

Returns the device's current battery state if available via the Navigator API.

Installation

Terminal window
npx atmx add hook use-battery