# alerts/

This guide was generated by `xuda-cli`.

You can remove all generated folder guides later with:

~~~bash
npm run clean:readmes
~~~

Use this folder for Xuda `alert` units.

## What belongs here

- toast and dialog messages
- success, warning, or error feedback
- reusable user messaging definitions

## Recommended blocks

- `<meta lang="json5">`
- optional `<params lang="json5">`
- `<alert lang="json5">`

## Important rules

- keep alert text and style in the alert unit instead of repeating them across components
- use alert units from workflows such as `call_alert`
- keep messaging consistent and easy to update in one place

## Example

~~~xml
<meta lang="json5">
{
  id: "student_saved",
  menuTitle: "Student Saved"
}
</meta>

<alert lang="json5">
{
  alertDisplay: "toast",
  alertType: "success",
  alertTitle: "Student saved",
  createLog: false
}
</alert>
~~~
