Enums: Snackbar

Control snackbar placement across the viewport.

Snackbar enums let you choose consistent notification placement so feedback appears where users expect it.

How it works

Set SnackbarLocation to position snackbars at the top, bottom, or edges of the screen.

Examples

  • SnackbarLocation.BottomEnd for unobtrusive alerts.
  • SnackbarLocation.TopStart for prominent banners.
  • SnackbarLocation.Bottom for centered bottom messages.

Reference

SnackbarLocation

  • Default Default behavior, same as Bottom.
  • Bottom Show the snackbar on the bottom side of the screen.
  • BottomStart Show the snackbar on the bottom-start side of the screen.
  • BottomEnd Show the snackbar on the bottom-end side of the screen.
  • Top Show the snackbar on the top side of the screen.
  • TopStart Show the snackbar on the top-start side of the screen.
  • TopEnd Show the snackbar on the top-end side of the screen.
On this page