showToast
showToast(config: ToastConfig): void
Show a toast notification. Publishes a "show-toast" event on
EspBus which is picked up by <esp-toaster>.
import { showToast } from "@taprootio/taproot-controls";
showToast({ message: "Saved!", variant: "success" });
showToast({ message: "Error!", variant: "danger", duration: 0 });
Parameters
showToast accepts the following parameters:
config
config has a type of ToastConfig.
Toast configuration.