Constructor
# <InputText />
InputText Component
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name |
string
|
The html name attribute for the input tag. | ||
label |
string
|
The text for the html label tag. | ||
placeholder |
string
|
The input placeholder. | ||
icon |
ReactElement
|
<optional> |
The icon to display inside the input field. | |
disabled |
disabled
|
<optional> |
Whether the input tag is disabled or not. | |
type |
"text"
|
"email"
|
"password"
|
<optional> |
"text" | The type of input tag to use. |
validation |
RegExp
|
<optional> |
The regex validation for the user input. | |
required |
boolean
|
<optional> |
false | If this field is required or not. |
- See:
- To Do:
-
- add some hover tooltip to explain why input might be invalid (new prop field)