Constructor
# <ImageInput inputName buttonTitle file isRequired onChange />
Renders the ImageInput component.
Allows the user to select an image from their file system.
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
inputName |
string | Yes | The name for the input | |
buttonTitle |
string | Yes | The button title | |
file |
object | No | The file that is associated with this input | |
isRequired |
bool | Yes | Indicates if this input is required as part of its associated form | |
onChange |
func | Yes | On input change handler |