This package contains a variety of hooks for https://alpinejs.dev/ that can be used to improve the developer experience of common front-end development tasks. You can install this package via npm: npm install @ryangjchandler/alpine-hooks You can then register all of the available hooks as an Alpine plugin. import Alpine from 'alpinejs'; import Hooks from '@ryangjchandler/alpine-hooks'; Alpine.plugin(Hooks); Alpine.start(); Or if you only need particular hooks, you can import and register them separately.
Hook Description Example $useHover Reacts to a mouse hovering over a specific element.
This hook can be used to react to the cursor hovering over a specific element.