Shorthand cheatsheet for Alpine.js

briefer ways to write code in Alpine.js
2025-09-24 12:30
// updated 2025-09-24 17:21

A cheatsheet for the Alpine.js framework:

table
Full formShorthand
x-on:event@event
x-bind:attribute:attribute
method()method
⬅️ older (in snippets)
📒 URL manipulation with JavaScript
⬅️ older (in code)
🏔️ Templating and styling with Alpine.js
newer (in code) ➡️
Rendering lists in Alpine.js 🏔️
⬅️ older (posts)
🏔️ Templating and styling with Alpine.js
newer (posts) ➡️
Rendering lists in Alpine.js 🏔️