Source: github.com

Hooks for Alpine.js
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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners