Textfield
A single line text input element.
Textfield Attributes
prop | type | default |
---|---|---|
disabled |
boolean
Whether the input is disabled.
|
false |
invalid |
boolean
Renders the field in an invalid state. Often paired together with help-text to
provide feedback about the error.
|
false |
help-text |
string
The content to display as the help text.
|
|
label |
string
The content to display as the label.
|
|
min |
number
Standard input min attribute, to be used with type="number". See MDN.
|
|
max |
number
Standard input max attribute, to be used with type="number". See MDN.
|
|
min-length |
number
The minimum number of characters supported by the input. See MDN.
|
|
max-length |
number
The maximum number of characters supported by the input. See MDN.
|
|
name |
string
The name of the input element, used when submitting an HTML form. See MDN.
|
|
pattern |
string
Regex pattern that the value of the input must match to be valid. See MDN.
|
|
placeholder |
string
Text hint that occupies the text input when it is empty.
|
|
read-only |
boolean
Whether the input can be selected but not changed by the user.
|
false |
required |
boolean
Whether user input is required on the input before form submission.
|
false |
type |
string
The type of input to render. See MDN.
|
|
value |
boolean
The current value.
|
Affix Attributes
prop | type | default |
---|---|---|
aria-label |
string
Defines a string value that labels the affix element.
|
|
clear |
boolean
Displays a clear icon.
|
false |
search |
boolean
Displays a search icon.
|
false |
label |
string
Displays a string
|