I have a very form heavy application that I'm reworking, and I want to be able to do something like:
{{ form-input(type, name, id, default value, etc.) }}
In my .blade views or the controller. The reason for this is that I have a lot of forms spread across the site, and I'm tired of retyping or copying/pasting all the boilerplate html/css stuff. Not to mention having to update them all if I want to change how it looks. I'm using Tailwind, so there's typically a lot of boilerplate I have to rewrite each time.
An added bonus would be being able to quickly change a template and have it change all of the forms at once.
So I have to know - is there an existing, up to date library to do this? One that doesn't use Vue or React, just plain html/tailwind.
I'm using Laravel 11 and obviously Tailwind. Although I guess if I can publish the views for the library I can modify it to use whatever.