Constructor
# <SmallTextInput inputType inputWidth minVal maxVal inputName value labelText isRequired onChange />
Renders the SmallTextInput component
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
inputType |
enum | No | The input type to use. Based on the HTML input type attribute. See types | |
inputWidth |
string | Yes | The width of the component | |
minVal |
string | No | The minimum number allowed. Used for the number inputType. | |
maxVal |
string | No | The maximum number allowed. Used for the number inputType. | |
inputName |
string | Yes | The name of the input | |
value |
string | Yes | The value of the input | |
labelText |
string | Yes | The input label's text | |
isRequired |
bool | Yes | Indicates of the input is required as part of the corresponding form | |
onChange |
func | No | Input change handler |