Snackbar
The Snackbar component informs users that an action has been or will be performed by the app.
Snackbar API
Import
import { Snackbar } from '@mui/base/Snackbar';
// or
import { Snackbar } from '@mui/base';
Props of the native component are also available.
The
ref
is forwarded to the root element.You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's
styleOverrides
property in a custom theme.
To learn how to customize the slot, check out the Overriding component structure guide.