PHPackages                             mkocansey/bladewind-input - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. mkocansey/bladewind-input

ActiveLibrary[Templating &amp; Views](/categories/templating)

mkocansey/bladewind-input
=========================

BladewindUI — Input field component

v4.2.1(1mo ago)0257MITBladePHP &gt;=8.1

Since Jun 7Pushed 1mo agoCompare

[ Source](https://github.com/mkocansey/bladewind-input)[ Packagist](https://packagist.org/packages/mkocansey/bladewind-input)[ RSS](/packages/mkocansey-bladewind-input/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (4)Used By (7)

[![License](https://camo.githubusercontent.com/ead282baa36c95c0a46cca5c9f0404c81b70cd523f8d3949a9f7d5ea8570475a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6b6f63616e7365792f626c61646577696e64)](https://github.com/mkocansey/bladewind/blob/main/LICENSE) [![Packagist Version](https://camo.githubusercontent.com/15f66547f182907350cedebc657712287ac309e3f57b37588b6494600981ad2b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6b6f63616e7365792f626c61646577696e642d696e707574)](https://packagist.org/packages/mkocansey/bladewind-input)

[![BladewindUI](https://camo.githubusercontent.com/2e5420b83a0b4ad1383e047b06317da183a0e71c7903e270e430ee215c32ac02/68747470733a2f2f626c61646577696e6475692e636f6d2f6173736574732f696d616765732f62772d6c6f676f2e706e67)](https://camo.githubusercontent.com/2e5420b83a0b4ad1383e047b06317da183a0e71c7903e270e430ee215c32ac02/68747470733a2f2f626c61646577696e6475692e636f6d2f6173736574732f696d616765732f62772d6c6f676f2e706e67)

Input
=====

[](#input)

BladewindUI — Input field component.

Installation
------------

[](#installation)

```
composer require mkocansey/bladewind-input
```

Or install the full library:

```
composer require mkocansey/bladewind
```

Input masking
-------------

[](#input-masking)

The input field supports masking, modelled on the [Alpine.js mask plugin](https://alpinejs.dev/plugins/mask). Use the wildcards `9` (digit), `a` (letter) and `*` (alphanumeric) in a template — every other character is a literal that is inserted automatically as the user types.

```
          {{-- 9 → digit --}}
              {{-- a → letter --}}
            {{-- * → letter or digit --}}
```

**Dynamic masks** change as the user types. A `creditCard` mask is built in (detects Amex / Diners / Visa-style cards) and needs no JavaScript:

```

```

For your own dynamic masks, point `dynamicMask` at a global JS function that returns a template for the current value. A global of the same name as a built-in takes precedence, so you can override `creditCard` too:

```

    function zipCode(input) {
        const digits = input.replace(/\D/g, '');
        return digits.length

```

AttributeDefaultDescription`mask``''`Static mask template using `9`, `a`, `*` wildcards.`dynamicMask``null`Name of a JS function `(input) => template` for masks that change as you type.`money``false`Format the field as a money input.`moneyDecimalSeparator``.`Decimal separator used when `money="true"`.`moneyThousandsSeparator``,`Thousands separator used when `money="true"`.`moneyPrecision``2`Number of decimal places allowed when `money="true"`. `0` disables decimals.> Masking forces the field to `type="text"` so formatted values (separators, letters) are preserved.

Documentation
-------------

[](#documentation)

Full documentation, live demos, and all available attributes are at **[bladewindui.com](https://bladewindui.com)**.

License
-------

[](#license)

MIT — see the [LICENSE](https://github.com/mkocansey/bladewind/blob/main/LICENSE) file.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance93

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

3

Last Release

33d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1946332?v=4)[Michael K. Ocansey](/maintainers/mkocansey)[@mkocansey](https://github.com/mkocansey)

---

Tags

laravelbladeinputtailwindcssbladewindui

### Embed Badge

![Health badge](/badges/mkocansey-bladewind-input/health.svg)

```
[![Health](https://phpackages.com/badges/mkocansey-bladewind-input/health.svg)](https://phpackages.com/packages/mkocansey-bladewind-input)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
