useHasFocus*

React sensor hook that determine if the application is in focus or not.

hooks

An example of using useHasFocus hook can be found with the Toast component.

Trigger the toast and focus on another window. You will notice the track bar is stopping.

Description of the SVG image Loading...

Installation

Run the following command:

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

Usage