controlled
Theme
- Light mode
- Dark mode
- Colored mode
showToast({
message: "Light theme applied.",
theme: "light",
});
showToast({
message: "Dark theme applied.",
theme: "dark",
});
showToast({
message: "Colored theme applied.",
theme: "colored",
});
Title
- Title Show
- Title Hide
showToast({
message: "Show toast With title",
title: true,
});
showToast({
message: "Show toast Without title",
title: false,
});
CLose
- Closable
- autoClose
showToast({
message: "Show toast With close button",
closable: true,
});
showToast({
message: "This toast won't auto close",
closable: true,
autoClose: false,
});
Progress
- progress
showToast({
message: "Show toast without progress bar.",
progress: false,
});