---
url: /api-proxy/interface/interactive/showToast.md
---
## mpx.showToast(Object object)

显示消息提示框

支持情况： 微信、支付宝、web、RN

[参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showToast.html)

> RN 环境会校验 `title`：缺失或类型不是 `string` 时进入 `fail`，并同时执行 `complete`。

### 参数 {#parameters}

**Object object**

### 示例代码 {#example-code}

```js
mpx.showToast({
  title: '成功',
  icon: 'success',
  duration: 2000
})
```
