Comprehensive Guide for Developers: UI & SDK Integration, Configuration, and API Reference
Optional
Close the snackbar after onClick. Default: true.
onClick
true
An action replaces the close button, so false leaves the snackbar with no way for the user to dismiss it — pair it with a duration, or close it by key.
false
duration
key
Button label — a translation key, or a literal when no key matches.
Close the snackbar after
onClick. Default:true.An action replaces the close button, so
falseleaves the snackbar with no way for the user to dismiss it — pair it with aduration, or close it bykey.