Skip to content
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

export MaterialDesignContent #539

Closed
wants to merge 1 commit into from

Conversation

tech-meppem
Copy link

Export the default MaterialDesignContent, so that minor modifications to it can be made.
Just by allowing this component to be wrapped would be really helpful if you wanted to make extremely minor adjustments to the default contents.
Related is issue #461
For example, if you just want to change the background color for the 'info' variant, you either have to always pass in the styles everytime you call enqueueSnackbar, or reimplement the entire component and override it in SnackbarProvider.
There is no way currently to make extremely minor modifications to the default components.

Exporting it would allow some minor styling to be generalised, even if not perfect, as when creating a Snackbar override, the default one can simply be wrapped instead of entirely re-created.

@iamhosseindhv
Copy link
Owner

Thanks for your contribution @tech-meppem - This component is now exported as of version 3.0.0-alpha.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants