Basic Forms
A textarea is an element on a webpage that you can type into.
By default Preline UI uses Tailwind CSS Forms plugin. Don't forget to install it!
A placeholder is required on each <input>
as our method uses the :placeholder-shown
pseudo-element. Also note that the <input>
must come first so we can utilize a sibling selector (e.g., ~
).
Use data-hs-default-height="*"
to set the height of the textarea while maintaining the auto-height feature. Ensure to include the rows="1"
attribute as well.
Add the readonly
boolean attribute on an input to prevent modification of the input’s value.
Add the disabled
boolean attribute on an input to remove pointer events, and prevent focusing.
Gray style example.
It provides valuable, actionable feedback to your users with HTML5 form validation.
Your message should be at least 10 characters long.
Looks good!