index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Alpine.js Playground</title>
</head>
<body>
<main class="app-shell" x-data="counter">
<p class="eyebrow">Alpine.js · HTML-first reactivity</p>
<h1>Build with Alpine directives</h1>
<p class="intro">
Keep the structure in HTML, then add focused behavior with
<code>x-data</code>, <code>x-text</code>, and <code>@click</code>.
</p>
<section class="counter-card">
<div>
<span class="label">Component state</span>
<strong x-text="count">0</strong>
</div>
<button type="button" @click="increment">
Increment
</button>
</section>
</main>
<script type="module" src="/src/main.js"></script>
</body>
</html>