Custom messages for FileInput. Used for accessibility by screen readers.
{}
browse:
"string,"
dropPrompt:
"string,"
dropPromptMultiple:
"string,"
files:
"string,"
remove:
"string,"
removeAll: string
Whether to allow multiple files. If an object is supplied, 'aggregageThreshold' indicates the maximum number of individual files to show. Above this, only a single message describing the number of files will be shown.
truefalse
{}
aggregateThreshold: number
Function that will be called when one or more files are added to the input. The file(s) can be found in event.target.files.
({ target: { files } }) => {...}
The font-weight of the text. This value will only be applied if global.input.weight is undefined.
600
This value has been deprecated and replaced by global.input.font.weight.
number | string
The border prop for the container.
{
"side": "all",
"size": "small",
"style": "dashed"
}
Any additional style for container when dragging over it.
"any CSS"
(props) => {}
Any additional style for container when hovering over it.
"any CSS"
(props) => {}
The Text props to use for the message shown before a file has been selected.
{"margin": "small"}