mkocansey / bladewind

BladewindUI is a collection of elegant Laravel blade-based UI components spiced with TailwindCSS and Javascript.
https://bladewindui.com
MIT License
515 stars 49 forks source link

Suggestion: input masking with AlpineJS mask plugin #397

Open Visnicio opened 2 weeks ago

Visnicio commented 2 weeks ago

Bladewind could have a mask attribute for inputs that if the user would want to use, he would need to add the AlpineJS mask plugin to the project, just like the date picker uses Alpine for its usability

mkocansey commented 2 weeks ago

Hi @Visnicio will what you are suggesting be different from <x-bladewind::input type="password" viewable="true" />? This lets you create a maskable field with the option to view what has been masked by clicking an eye icon.

Visnicio commented 2 weeks ago

I was thinking in something more like a date input, or telephone input, where you would use liek this <x-bladewind::input label="Telephone" mask="(99) 9999-9999">

mkocansey commented 2 weeks ago

Oh right. I get you now. I will look into Alpine's mask plugin and see how easy that will be to integrate.