robsontenorio / mary

Laravel Blade UI Components for Livewire 3
https://mary-ui.com
Other
804 stars 88 forks source link

Masks in inputs #484

Closed rwrodrigoa closed 3 weeks ago

rwrodrigoa commented 3 weeks ago

Firstly congratulations @robsontenorio, it’s an incredible project!!!

Is there any way to create a mask for a input? For example to enter CPF/CNPJ or phone numbers?

robsontenorio commented 3 weeks ago

You can use alpine mask, it is built in. https://alpinejs.dev/plugins/mask

`<x-input x-mask=“99.999.999” …/>

rwrodrigoa commented 3 weeks ago

Perfect! I didn't know about this AlpineJs solution.

Thanks!