Snackbar
A short message that pops up at the bottom of the screen, with an undo button.
Add it to your project
Or install the packages yourselfTerminal
npm install @mui/icons-material @mui/material
First time with Material UI? Set it up once.
The code
'use client';
import * as React from 'react';
import Button from '@mui/material/Button';
import type { SnackbarCloseReason } from '@mui/material/Snackbar';
import Snackbar from '@mui/material/Snackbar';
import IconButton from '@mui/material/IconButton';
import CloseIcon from '@mui/icons-material/Close';
export default function SimpleSnackbar() {
const [open, setOpen] = React.useState(false);
const handleClick = () => {This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.