Field API
API reference docs for theField
component. For examples and details on the usage of this component, visit the component demo page.
Props
Props | Type | Description | Default |
---|---|---|---|
|
| Input component like TextInput, Textarea. | |
|
| Provide additional information that will aid user input. | _ |
|
| Message to show when the field is invalid. | _ |
|
| Specifies the unique identifier for the form control within the component. This ID is used to associate the input, textarea, select, button etc with its label or other descriptive elements. | _ |
|
| Whether the field is disabled. |
|
|
| Whether user input is required on the field before form submission. |
|
|
| Label for the field. | _ |
|
| A label must always be provided for assistive technology, but you may hide it from sighted users when the intent can be inferred from context. |
|
|
| Additional context, typically used to indicate that the field is optional. | _ |
|
| The size of the field. |
|
|
| Counter object containing | _ |
|
| Maximum value the counter can reach. | _ |
|
| Current value of the counter. | _ |
|
| Whether the counter is always visible. |
|