Custom Events and Event Modifiers with x-on

Handle custom events

AlpineJS also supports handling custom events like native DOM events. It means we can dispatch an event and have AlpineJS listen for it.

Get hands-on with 1400+ tech skills courses.