Make corrections to TextInput docs

Close #1977
This commit is contained in:
Nicolas Gallagher
2021-04-07 13:43:28 -07:00
parent 6bfd80cc56
commit 6f744815ab
@@ -71,7 +71,7 @@ Equivalent to [HTMLElement.dataset](https://developer.mozilla.org/en-US/docs/Web
The initial value of the input. Useful for simple use-cases where you don't want to deal with listening to events and updating the value prop to keep the controlled state in sync. The initial value of the input. Useful for simple use-cases where you don't want to deal with listening to events and updating the value prop to keep the controlled state in sync.
{% endcall %} {% endcall %}
{% call macro.prop('direction', '?("auto" | "ltr" | "rtl") = "auto"') %} {% call macro.prop('dir', '?("auto" | "ltr" | "rtl") = "auto"') %}
Equivalent to [HTMLElement.dir](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir) Equivalent to [HTMLElement.dir](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir)
{% endcall %} {% endcall %}
@@ -140,7 +140,6 @@ Callback that is called when the keyboard's submit button is pressed. When `mult
{% endcall %} {% endcall %}
{% call macro.prop('placeholder', '?boolean') %} {% call macro.prop('placeholder', '?boolean') %}
Text that appears in the form control when it has no value set. Text that appears in the form control when it has no value set.
{% endcall %} {% endcall %}
@@ -149,10 +148,6 @@ Text that appears in the form control when it has no value set.
Equivalent to defining `::placeholder { color }` via a CSS property. Equivalent to defining `::placeholder { color }` via a CSS property.
{% endcall %} {% endcall %}
{% call macro.prop('required', '?boolean') %}
Equivalent to [HTMLElement.required](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required)
{% endcall %}
{% call macro.prop('returnKeyType', '?string') %} {% call macro.prop('returnKeyType', '?string') %}
Specifies what action label (or icon) to present for the enter key on virtual keyboards. Equivalent to [HTMLElement.enterkeyhint](https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-enterkeyhint-attribute) Specifies what action label (or icon) to present for the enter key on virtual keyboards. Equivalent to [HTMLElement.enterkeyhint](https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-enterkeyhint-attribute)
{% endcall %} {% endcall %}