📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

619 Modules
409 Ready
209 Need Help
🏆 Leaderboard
Actively Maintained v1.0.1

Hyva Input Mask

deadsimple/hyva-input-mask

Applies input masks to form fields within Hyvä themes using Alpine.js. Improves user experience and data validation by formatting user input.

180
Downloads
Below average
0
GitHub Stars
2mo ago
Last Release
0
Open Issues
Build Issues
2/3 checks passed

Build Tests

Composer Install
DI Compile
Templates

Code Quality

Coding Standard
PHPStan Level 9

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.1 on Magento 2.4.8-p3
Jan 15, 2026

Looking for Contributors

Template compilation fails. Your contribution could help the entire Magento community!

Contribute

Share This Module's Status

Hyva Input Mask Magento compatibility status badge

README

Loaded from GitHub

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Deadsimple Hyva Input Mask Module using AlpineJs Plugin

This module is a simple wrapper to integrate the input mask plugin from AlpineJs directly into your Hyvä theme and forms. It allows you to easily apply input masks to form fields, enhancing user experience and data validation.

Installation

To install the module, follow these steps:

  1. Install the module using Composer:
composer require deadsimple/hyva-inputmask
  1. Enable the module:
bin/magento module:enable DeadSimple_HyvaInputMask
  1. Run the setup upgrade:
bin/magento setup:upgrade

Usage

To use the input mask plugin, you need to add the x-mask attribute to your input field. The value of the x-mask attribute should be a valid mask pattern. For example:

<input type="text" x-mask="999-999-9999" />

This will apply a phone number mask to the input field, allowing only digits and formatting them as 999-999-9999.

For more information on the available mask patterns and options, refer to the AlpineJs Mask Plugin Documentation.

License

This module is licensed under the MIT License. See the LICENSE file for more information.

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.