Text field
Text field
Component demo
Interactive example
<ic-text-fieldlabel="What is your favourite coffee?"placeholder="Please enter…"helper-text="Such as Arabica, Robusta or Liberica"></ic-text-field>
Text field details
Props
All components also accept native properties supported by the DOM, such asclassName
and
style
.
|
|
|
|
|---|---|---|
|
|
The label for the input. |
|
|
|
The automatic capitalisation of the text value as it is entered/edited by the user. Available options: "off", "none", "on", "sentences", "words", "characters". |
|
|
|
The state of autocompletion the browser can apply on the text value. |
|
|
|
The state of autocorrection the browser can apply when the user is entering/editing the text value. |
|
|
|
If |
|
|
|
The amount of time, in milliseconds, to wait to trigger the |
|
|
|
If |
|
|
|
Specify whether the text field fills the full width of the container.
If |
|
|
|
The helper text that will be displayed for additional field guidance. |
|
|
|
If |
|
|
|
If |
|
|
|
The ID for the input. |
ic-text-field-input-${inputIds++}
|
|
|
A hint to the browser for which keyboard to display.
Possible values: |
|
|
|
The maximum number that can be accepted as a value, when |
|
|
|
The count of characters in the field. Will display a warning if the bound is reached. (NOTE: If the value of the text field has been set using the |
|
|
|
The text to display as the warning message when the maximum number of characters (the |
Maximum input is ${this.maxCharacters} characters
|
|
|
The text to display as the error message when the maximum value (the |
Maximum value of ${this.max} exceeded
|
|
|
The minimum number that can be accepted as a value, when |
|
|
|
The minimum number of characters that can be entered in the field. |
|
|
|
The text to display as the error message when the minimum number of characters (the |
Minimum input is ${this.minCharacters} characters
|
|
|
The text to display as the error message when the minimum value (the |
Minimum value of ${this.min} not met
|
|
|
The name of the control, which is submitted with the form data. |
|
|
|
The placeholder value to be displayed. |
|
|
|
If |
|
|
|
If |
|
|
|
If |
|
|
|
The number of rows to transform the text field into a text area with a specific height. |
|
|
|
The size of the text field component. |
|
|
|
If |
|
|
|
Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. |
|
|
|
The type of control to display. The default type is text. |
|
|
|
The value of the |
|
|
|
If |
|
|
|
The validation state - e.g. 'error' | 'warning' | 'success'. |
|
|
|
The text to display as the validation message. |
|
|
|
The value of the text field. |
|
|
The label for the input. |
|
The automatic capitalisation of the text value as it is entered/edited by the user. Available options: "off", "none", "on", "sentences", "words", "characters". |
|
The state of autocompletion the browser can apply on the text value. |
|
The state of autocorrection the browser can apply when the user is entering/editing the text value. |
|
If |
|
The amount of time, in milliseconds, to wait to trigger the |
|
If |
|
Specify whether the text field fills the full width of the container.
If |
|
The helper text that will be displayed for additional field guidance. |
|
If |
|
If |
|
The ID for the input. ic-text-field-input-${inputIds++}
|
|
A hint to the browser for which keyboard to display.
Possible values: |
|
The maximum number that can be accepted as a value, when |
|
The count of characters in the field. Will display a warning if the bound is reached. (NOTE: If the value of the text field has been set using the |
|
The text to display as the warning message when the maximum number of characters (the Maximum input is ${this.maxCharacters} characters
|
|
The text to display as the error message when the maximum value (the Maximum value of ${this.max} exceeded
|
|
The minimum number that can be accepted as a value, when |
|
|