variantjs / vue

Vue Variantjs
https://variantjs.netlify.app
182 stars 13 forks source link

Should TInput have type="text" attribute set by default? #50

Open invokermain opened 2 years ago

invokermain commented 2 years ago

Tailwind forms plug in says: Note that for text inputs, you must add the type="text" attribute for these styles to take effect.

As this library relies on that plugin, the user has to know to set type="text" on all default t-input components to have the correct theming. Which will probably catch people out like it just did to me. This issue seems to affect the development (i.e. example) repo as well.

Is it worth setting this as a default attribute to ensure consistent theming? As currently you will not be aware of this fact unless you read the forms plugin documentation.

P.S. this library is super cool, keep it up!