-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property to Change the Dropzone Icon #48
Comments
What would you think would be a good solution here? a property that receives a path? or maybe it should receive a Material UI icon component? |
well you could have it passed in as a prop, and because you will want to set the classes on it you can probably pass those in as props using React.createElement const icon = React.createElement(this.props.customIcon, { className: classes.uploadIconSize }); | DropzoneArea.defaultProps = { and have the default props as CloudUploadIcon , just an idea, This would also cater for a scenario for if they want to use and Svg Icon or a font awesome Icon, |
Hi @max-carroll , Thanks for your suggestion, currently there's an open PR #110 implementing this feature as you suggested. I'll review it as soon as possible. |
Ahh I've already implemented it on my side, didn;t realise that 🤣, ill review |
How do I change the icon to use the CloudUploadOutlined icon in the dropzone for consistency within my app? Maybe introduce a prop for it?
The text was updated successfully, but these errors were encountered: