This site uses cookies from Google to deliver its services and to analyze traffic.
More details
Okay, got it
Skip to main content
Material
Components
CDK
Guides
arrow_drop_down
19.1.2
format_color_fill
GitHub
Components
CDK
Guides
menu
Menu
Autocomplete
Badge
Bottom Sheet
Button
Button toggle
Card
Checkbox
Chips
Core
Datepicker
Dialog
Divider
Expansion Panel
Form field
Grid list
Icon
Input
List
Menu
Paginator
Progress bar
Progress spinner
Radio button
Ripples
Select
Sidenav
Slide toggle
Slider
Snackbar
Sort header
Stepper
Table
Tabs
Timepicker
Toolbar
Tooltip
Tree
overview
api
styling
examples
Examples for snack-bar
Snack-bar with an annotated custom component
link
code
open_in_new
Snack bar duration (seconds)
Pizza party
Snack-bar with a custom component
link
code
open_in_new
Snack bar duration (seconds)
Pizza party
Testing with MatSnackBarHarness
link
code
open_in_new
This example contains tests. Open in Stackblitz to run the tests.
Basic snack-bar
link
code
open_in_new
Message
Action
Show snack-bar
Snack-bar with configurable position
link
code
open_in_new
Horizontal position
Start
Vertical position
Bottom
Pool party!
Azure & Blue theme selected.
Select a version of the documentation
Select a theme for the documentation
Copy link to example
View code
Edit Snack-bar with an annotated custom component example in StackBlitz
Edit Snack-bar with a custom component example in StackBlitz
Edit Testing with MatSnackBarHarness example in StackBlitz
Edit Basic snack-bar example in StackBlitz
Edit Snack-bar with configurable position example in StackBlitz