NicholasMata / mui-file-upload

File uploads components for MUI. (NOT OFFICAL)
1 stars 4 forks source link

Add sx prop to top level components #1

Closed bryanjtc closed 10 months ago

bryanjtc commented 1 year ago

Allow styling components like MultiFileUploadProps and SingleFileUploadProps by using the sx prop to customise the FileDropzone and the FileUpload

NicholasMata commented 12 months ago

With the latest version v1.0.0-alpha.4 sx is now available on the top level components

MultiFileUpload

<MultiFileUpload
  sx={{
    dragZoneSx: (state) => { border: state.dragActive ? 'green' : 'blue'}
  }}
  ...
/>

SingleFileUpload

<SingleFileUpload
  sx={{
    dragZoneSx: (state) => { border: state.dragActive ? 'green' : 'blue'}
  }}
  ...
/>