Comprehensive Guide for Developers: UI & SDK Integration, Configuration, and API Reference
OptionalactionOptionaldurationAuto-close duration in milliseconds.
undefined → uses default durationnull or 0 → does not auto-close (stays until user closes)OptionalkeyOptional key to de-duplicate snackbars.
If provided with replace: true, any existing snackbar with the same key will be closed first.
OptionalprogressHow far the work has got, 0–100 (clamped). Draws a 24px ring ahead of the
message: the value is the length of the ring's arc, and that arc spins for as
long as the snackbar is up, so the ring reads as busy while still showing how
much is done. Omit for no ring. Pair with duration: null so the snackbar
stays up for as long as the work runs.
OptionalreplaceWhen used with key, controls whether to replace an existing keyed snackbar.
Default: false (do nothing if a snackbar with the same key is already visible).
Trailing action button, e.g. a
Cancelfor the work being reported.