-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Ability to customize the default snackbar #180
Comments
Thanks for reporting @Brettm12345 . |
Hi iamhosseindhv. Great job! From documentation (content section): "You can entirely customize your snackbars by passing a custom children in SnackbarProvider props or options parameter of enqueueSnackbar." I'm expecting to be possible to pass to the Provider something like that to set a default property:
Is there a way to set the variant: 'error' as default. Thanks |
@dalborgo Once <SnackbarProvider variant="error">
// ...
</SnackbarProvider> |
@iamhosseindhv i think if you do this
instead of this:
you solve many problems. if you path i thinks it is rare for developers to use variant props on snackbar.provider. |
I would love to be able to use the
children
parameter fromenqueueSnackbar
onSnackbarProvider
in order to customize the default snackbarThe text was updated successfully, but these errors were encountered: