@chakra-ui/react#IToast TypeScript Examples

The following examples show how to use @chakra-ui/react#IToast. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: toast.ts    From ke with MIT License 5 votes vote down vote up
notify(params: IToast): void {
    this.toast(params)
  }
Example #2
Source File: toast.ts    From ke with MIT License 5 votes vote down vote up
info(params: IToast): void {
    this.toast({ status: NotificationStatus.INFO, ...params })
  }
Example #3
Source File: toast.ts    From ke with MIT License 5 votes vote down vote up
warning(params: IToast): void {
    this.toast({ status: NotificationStatus.WARNING, ...params })
  }
Example #4
Source File: toast.ts    From ke with MIT License 5 votes vote down vote up
success(params: IToast): void {
    this.toast({ status: NotificationStatus.SUCCESS, ...params })
  }
Example #5
Source File: toast.ts    From ke with MIT License 5 votes vote down vote up
error(params: IToast): void {
    this.toast({ status: NotificationStatus.ERROR, ...params })
  }
Example #6
Source File: toast.ts    From ke with MIT License 5 votes vote down vote up
notify = (params: IToast): void => {
    this.notificationHandler.notify(params)
  }
Example #7
Source File: toast.ts    From ke with MIT License 5 votes vote down vote up
info = (params: IToast): void => {
    this.notificationHandler.info(params)
  }
Example #8
Source File: toast.ts    From ke with MIT License 5 votes vote down vote up
warning = (params: IToast): void => {
    this.notificationHandler.warning(params)
  }
Example #9
Source File: toast.ts    From ke with MIT License 5 votes vote down vote up
success = (params: IToast): void => {
    this.notificationHandler.success(params)
  }
Example #10
Source File: toast.ts    From ke with MIT License 5 votes vote down vote up
error = (params: IToast): void => {
    this.notificationHandler.error(params)
  }