Global configuration
There are some params like darkMode
or localization that can be set through a global config.
Also, you can add your custom icons sources.
This feature is possible thanks to the React Context hooks.
Config
In the following demo we will wrap the complete app and will set the 3 allowed params:
- darkMode
- localization
- icons
Max file size: 28.00 MB, Files 0/10,
file_global_conf.docx
file_global_conf.docx
pdf not allowed. file is too big. file_global_conf.docx
file_global_conf.pdf
file_global_conf.pdf
file_global_conf.docx
Upload was abortedfile_global_conf.pdf
there was an error on the serverfile_global_conf.docx
files-ui <3<FilesUiProvider config={{ localization: localization, darkMode: darkModeOn, icons: otherIcons , }}>{/** components here */}</FilesUiProvider>
Content