Scripts & Templates

Alpine.js

A tiny JavaScript framework for adding interactivity to server-built pages.

Pass it on: WhatsApp
Added
Oct 31, 2026
Source
alpinejs.dev

Alpine is perfect for small touches like dropdowns, tabs, modals and toggles. You write it right inside your HTML, so it fits nicely into PHP templates.

What you can do with it

  • Add dropdown menus, tabs and pop-ups
  • Show and hide content without page reloads
  • Avoid the setup of big frameworks like React

Good to know

Load it from a CDN with one script tag. It goes well with htmx and Tailwind.

Was this helpful?