# Recipes

> Short answers to common tasks with @azmr/ui, each with a live demo and the source to copy.

Source: https://platform.azmara.io/docs/recipes

A recipe is one task, answered in one screen. For whole pages built from many components, see the [examples](https://platform.azmara.io/docs/examples.md).

| Recipe                                                                                           | The task                                                                            |
| ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------- |
| [Validate a form](https://platform.azmara.io/docs/recipes/form-validation.md)                    | Show an error next to a field, in a way a screen reader hears, and put focus on it. |
| [Show a toast while a promise runs](https://platform.azmara.io/docs/recipes/toast-on-promise.md) | Report loading, success and failure of one async call.                              |
| [Open a dialog from a menu item](https://platform.azmara.io/docs/recipes/menu-opens-dialog.md)   | Confirm something chosen from a menu, without the dialog closing with the menu.     |
| [Give each tenant its own theme](https://platform.azmara.io/docs/recipes/theme-per-tenant.md)    | Apply a brand colour from data to one part of a page.                               |
