When using Tailwind forms, I am expecting my <InputText /> element to be unstyled but it keeps the original styling for the text input.
It works fine if I do something like
<input type="text" name="client_name" id="client_name" class="block w-full sm:text-sm border-gray-300 rounded-md">
How can I take away the built in styling for <InputText /> when using TailwindCSS-forms?
You need to add on a
type="text".So you would want something like this:
<InputText type="text" id="client_name" @bind-Value="client.Name" class="block w-full sm:text-sm border-gray-300 rounded-md"/>The reason being explained below from the @tailwindcss/forms docs: