Form text is used along with form components to display validation messages. Check the validation page for the examples.
<script defer src="https://cdn.jsdelivr.net/npm/litewind-alpine@0.x.x/components/form-text/dist/cdn.min.js"></script>
The data for the component is provided by the formText
function in the x-data
directive and the props in the data-*
attributes.
data-input
empty string
String
Validation messages will be displayed for that input.