<script defer src="https://unpkg.com/@alpinejs/mask@latest/dist/cdn.min.js"></script>

<script defer src="https://unpkg.com/alpinejs@latest/dist/cdn.min.js"></script>

<div x-data="{ cardNumber: '' }">
  <input x-model="cardNumber" type="text" placeholder="9999 9999 9999 9999" class="w-full" />
</div>
