---
updatedAt: 2025-08-05T09:36:22.000Z
agentTools:
  projectIndex: https://dev.tapcart.com/llms.txt
---

# trigger/alert

Show an alert in the app

#### Fields

### `type` • *string*

##### Options include `default`, `modal`, `toast`

### `style` • *string*

##### Options include `default`, `error`, `success`, `warning`

### `title` • *string*

##### The title for your message

### `message` • *string* <span class="required-tag">required</span>

##### The text body for your message

***

<br />

```javascript App Studio - React.js
Tapcart.action("trigger/alert", {
  "type": "toast",
  "style": "error",
  "title": "User not found!",
  "message": "It looks like there was a problem locating your account, try creating a user instead."
});
```