Input Card Expiry Date

Mask the value of the input to be formatted like a card expiry date with the x-mask Alpine JS plugin.

This uses the official Alpine JS x-mask plugin.

Example

Code