nriDescription and testId helpersGives you the DOM element id that will be used by a TextInput.view with the given label.
This is for use when you need the DOM element id for use in javascript (such as trigger an event to focus a particular text input)
An input that is optimized for email entry
NOTE: this uses inputmode="email" so that mobile devices will use the email keyboard,
but not type="email" because that would enable browser-provided validation which is inconsistent and at odds
with our validation UI.
An input with "search" type specified.
An optional customization of a TextInput.
If not explicit placeholder is given, the input label will be used as the placeholder.
Causes the TextInput to produce the given msg when the field is blurred.
Adds CSS to the input container. This is meant to be used for margin, and child node attributes for display:flex, display:grid, etc. If you want to customize colors, borders, font sizes, etc, you should instead add to the TextInput API to support what you need.
Add any attribute to the input. Don't use this helper for adding css!
TODO: in V7, change this helper's type to List (Html.Attribute msg) -> Attribute msg,
to be more consistent with other helpers.
Also, we should probably change the implemenation from attr :: config.custom to
config.custom ++ attributes for a more intuitive and consistent API.
Set a custom ID for this text input and label. If you don't set this, we'll automatically generate one from the label you pass in, but this can cause problems if you have more than one text input with the same label on the page. Use this to be more specific and avoid issues with duplicate IDs!
Sets whether or not the field will be highlighted as having a validation error.
If you are always passing True, then you don't need to use this attribute.
If Just, the field will be highlighted as having a validation error,
and the given error message will be shown.
Uses the "Writing" input style. See Nri.Ui.InputStyles.V2.Theme.
Render the TextInput as HTML. The input's label, InputType, and current value are all required. Other attributes are all optional.