Yuvaleros / material-ui-dropzone

A Material-UI file upload dropzone
MIT License
483 stars 248 forks source link

How to customise Submit / Cancel buttons? #320

Open gfox1984 opened 2 years ago

gfox1984 commented 2 years ago

Feature Request

Describe the problem related to this feature request

I would like to be able to customise the color and variant of the Submit and Cancel buttons, so that they integrate better within my UI (eg: I use color="primary" variant="contained" for Save buttons, and I don't specify color or variant for Cancel buttons)

Describe the solution you'd like

Add props to customise the Submit and Cancel buttons (either ButtonProps like submitButtonProps, or more specific props such as submitButtonColor, submitButtonVariant, etc.)

Describe alternatives you've considered

I considered using CSS to replicate the style of a button with the variant and color I'm after, but this is far from ideal (it defeats the purpose of using a MUI-friendly library)