LabelledFileInput
Component | Source Code
extends FileInputProps, LabelledProps
Props Inheritance Hierarchy: Omit<ComponentPropsWithRef<“input”>, “children”> -> InputProps -> FileInputProps & LabelledProps
Properties
Section titled “Properties”error?: string
Section titled “error?: string”info?: string
Section titled “info?: string”label?: string
Section titled “label?: string”labelPosition?: LabelPosition
Section titled “labelPosition?: LabelPosition”What position the label text appears relative to the input.
labelProps?: LabelProps
Section titled “labelProps?: LabelProps”labelTextProps?: InlineTextProps
Section titled “labelTextProps?: InlineTextProps”onChangeFiles?: Function
Section titled “onChangeFiles?: Function”Callback for when the user uploads files.
Note that because of how HTML file inputs work, this callback is not additive. That is, if the user uploads 1 file, then uploads 2 files, the second invocation of this callback will just contain the 2 new files.