files-ui-main-logo
Files ui

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 MBFiles 0/10
file_global_conf.docx
file_global_conf.docx
pdf not allowed. file is too big.
file_global_conf.docx
Preparing
file_global_conf.pdf
28 %
Uploading
file_global_conf.pdf
file_global_conf.docx
Upload was aborted
file_global_conf.pdf
there was an error on the server
file_global_conf.docx
files-ui <3
<FilesUiProvider
config={{
localization: localization,
darkMode: darkModeOn,
icons: otherIcons ,
}}
>
{/** components here */}
</FilesUiProvider>