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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners