Skip to content

FileChooser properties

Summary


Props table


Parameter
Type
Default
top | bottom | left | right
right
boolean
false
(newValue: File) => void
() => {}
JSX.Element | string
Select file


Props list



namePosition

Type
Default
top | bottom | left | right
right


File name position (hidden when no file is actually selected



hideFileName

Type
Default
boolean
false


Hide/show filename, when a file is selected



onChange

Type
Default
(newValue: File) => void
() => {}


Callback triggered when a file is selected by the user. It accept a single File type argument



children

Type
Default
JSX.Element | string
Select file


FileChooser button content. If not set, a predefined label will be used